fixed exception during server shutdown

This commit is contained in:
badaix 2016-11-06 13:15:19 +01:00
parent 748c4c06b1
commit 7353383313
5 changed files with 15 additions and 6 deletions

View file

@ -98,7 +98,8 @@ void PcmStream::stop()
if (active_)
{
active_ = false;
readerThread_.join();
if (readerThread_.joinable())
readerThread_.join();
}
}