mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-07 03:37:42 +02:00
fixed deadlock in server shutdown
This commit is contained in:
parent
341466ceb5
commit
935899b0a2
5 changed files with 35 additions and 23 deletions
|
@ -84,6 +84,7 @@ void FileStream::worker()
|
|||
ifs.read(chunk->payload + count, toRead - count);
|
||||
|
||||
encoder_->encode(chunk.get());
|
||||
if (!active_) break;
|
||||
nextTick += pcmReadMs_;
|
||||
chronos::addUs(tvChunk, pcmReadMs_ * 1000);
|
||||
long currentTick = chronos::getTickCount();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue