change stream with "SetStream (id)"

This commit is contained in:
badaix 2016-02-03 22:34:52 +01:00
parent 0092f79f88
commit 5fae6e85f7
10 changed files with 90 additions and 8 deletions

View file

@ -128,7 +128,7 @@ void ControlServer::stop()
{
acceptor_->cancel();
std::unique_lock<std::mutex> mlock(mutex_);
for (auto it = sessions_.begin(); it != sessions_.end(); ++it)
(*it)->stop();
for (auto s: sessions_)
s->stop();
}