mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-16 18:46:15 +02:00
abortable sleep
This commit is contained in:
parent
7353383313
commit
d41d314e27
5 changed files with 35 additions and 21 deletions
server/streamreader
|
@ -91,7 +91,8 @@ void FileStream::worker()
|
|||
if (nextTick >= currentTick)
|
||||
{
|
||||
// logO << "sleep: " << nextTick - currentTick << "\n";
|
||||
chronos::sleep(nextTick - currentTick);
|
||||
if (!sleep(nextTick - currentTick))
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue