terminate acceptor and sessions on stop

This commit is contained in:
orignal 2014-12-17 15:21:50 -05:00
parent 84235fe479
commit a44ca91409
3 changed files with 30 additions and 14 deletions

View file

@ -580,9 +580,10 @@ namespace client
void BOBCommandChannel::Stop ()
{
m_IsRunning = false;
for (auto it: m_Destinations)
it.second->Stop ();
m_IsRunning = false;
m_Acceptor.cancel ();
m_Service.stop ();
if (m_Thread)
{