mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-26 04:47:37 +02:00
Call read from executor
This commit is contained in:
parent
051ba91cfc
commit
6b24ec6a3d
2 changed files with 7 additions and 4 deletions
|
@ -150,7 +150,7 @@ void PosixStream::do_read()
|
|||
{
|
||||
LOG(INFO, LOG_TAG) << "next read < 0 (" << getName() << "): " << std::chrono::duration_cast<std::chrono::microseconds>(next_read).count() / 1000.
|
||||
<< " ms\n";
|
||||
do_read();
|
||||
boost::asio::post(strand_, [this] { do_read(); });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue