mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
Use strand executors
This commit is contained in:
parent
e6872593ee
commit
12aeb5859c
15 changed files with 38 additions and 38 deletions
|
@ -53,7 +53,7 @@ void FileStream::do_connect()
|
|||
{
|
||||
LOG(DEBUG, LOG_TAG) << "connect\n";
|
||||
int fd = open(uri_.path.c_str(), O_RDONLY | O_NONBLOCK);
|
||||
stream_ = std::make_unique<boost::asio::posix::stream_descriptor>(ioc_, fd);
|
||||
stream_ = std::make_unique<boost::asio::posix::stream_descriptor>(strand_, fd);
|
||||
on_connect();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue