mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-26 06:27:05 +02:00
abc
git-svn-id: svn://elaine/murooma/trunk@283 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
001bfa6aba
commit
7467141a14
3 changed files with 47 additions and 2 deletions
|
@ -20,6 +20,7 @@ void ControlServer::send(shared_ptr<BaseMessage> message)
|
|||
if (!(*it)->active())
|
||||
{
|
||||
cout << "Session inactive. Removing\n";
|
||||
(*it)->stop();
|
||||
sessions.erase(it++);
|
||||
}
|
||||
else
|
||||
|
@ -92,8 +93,8 @@ void ControlServer::acceptor()
|
|||
ServerSession* session = new ServerSession(this, sock);
|
||||
{
|
||||
std::unique_lock<std::mutex> mlock(mutex);
|
||||
sessions.insert(shared_ptr<ServerSession>(session));
|
||||
session->start();
|
||||
sessions.insert(shared_ptr<ServerSession>(session));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue