mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-08 12:17:57 +02:00
fixed session shutdown
This commit is contained in:
parent
82c0070233
commit
e35e724110
2 changed files with 7 additions and 6 deletions
|
@ -38,7 +38,7 @@ void ControlServer::send(const msg::BaseMessage* message)
|
|||
{
|
||||
if (!(*it)->active())
|
||||
{
|
||||
logO << "Session inactive. Removing\n";
|
||||
logS(kLogErr) << "Session inactive. Removing\n";
|
||||
// don't block: remove ServerSession in a thread
|
||||
auto func = [](shared_ptr<ServerSession> s)->void{s->stop();};
|
||||
std::thread t(func, *it);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue