mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-09 06:11:45 +02:00
fixed exception during server shutdown
This commit is contained in:
parent
748c4c06b1
commit
7353383313
5 changed files with 15 additions and 6 deletions
|
@ -97,6 +97,9 @@ void PipeStream::worker()
|
|||
}
|
||||
while ((len < toRead) && active_);
|
||||
|
||||
if (!active_)
|
||||
break;
|
||||
|
||||
encoder_->encode(chunk.get());
|
||||
nextTick += pcmReadMs_;
|
||||
chronos::addUs(tvChunk, pcmReadMs_ * 1000);
|
||||
|
@ -118,7 +121,7 @@ void PipeStream::worker()
|
|||
}
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
logE << "Exception: " << e.what() << std::endl;
|
||||
logE << "(PipeStream) Exception: " << e.what() << std::endl;
|
||||
chronos::sleep(100);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue