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