mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
fixed segfault
This commit is contained in:
parent
cc057eef29
commit
46bd85e4e5
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ void ControlServer::start()
|
|||
|
||||
void ControlServer::stop()
|
||||
{
|
||||
acceptor_->cancel();
|
||||
if (acceptor_)
|
||||
acceptor_->cancel();
|
||||
std::unique_lock<std::mutex> mlock(mutex_);
|
||||
for (auto s: sessions_)
|
||||
s->stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue