fixed crash on stop
This commit is contained in:
@@ -1042,9 +1042,12 @@ namespace client
|
|||||||
LogPrint (eLogError, "SAM: runtime exception: ", ex.what ());
|
LogPrint (eLogError, "SAM: runtime exception: ", ex.what ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
std::unique_lock<std::mutex> l(m_SessionsMutex);
|
||||||
for (auto& it: m_Sessions)
|
for (auto& it: m_Sessions)
|
||||||
it.second->CloseStreams ();
|
it.second->CloseStreams ();
|
||||||
m_Sessions.clear ();
|
m_Sessions.clear ();
|
||||||
|
}
|
||||||
StopIOService ();
|
StopIOService ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user