mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-06 03:07:39 +02:00
fix rare deadlock
in case of pending control request for ungraceful disconnected clients
This commit is contained in:
parent
e7e529c818
commit
297d74aae9
3 changed files with 33 additions and 27 deletions
|
@ -86,12 +86,12 @@ void StreamSession::stop()
|
|||
}
|
||||
if (readerThread_ && readerThread_->joinable())
|
||||
{
|
||||
LOG(DEBUG) << "joining readerThread\n";
|
||||
LOG(DEBUG) << "StreamSession joining readerThread\n";
|
||||
readerThread_->join();
|
||||
}
|
||||
if (writerThread_ && writerThread_->joinable())
|
||||
{
|
||||
LOG(DEBUG) << "joining writerThread\n";
|
||||
LOG(DEBUG) << "StreamSession joining writerThread\n";
|
||||
messages_.abort_wait();
|
||||
writerThread_->join();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue