fixed session shutdown

This commit is contained in:
badaix 2015-08-06 23:51:13 +02:00
parent 82c0070233
commit e35e724110
2 changed files with 7 additions and 6 deletions

View file

@ -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);