fixed crash

This commit is contained in:
orignal 2015-02-27 13:07:32 -05:00
parent bd9e68e69f
commit 7949ffe41e
3 changed files with 10 additions and 2 deletions

View file

@ -256,6 +256,7 @@ namespace transport
std::shared_ptr<SSUSession> SSUServer::FindSession (const boost::asio::ip::udp::endpoint& e) const
{
std::unique_lock<std::mutex> l(m_SessionsMutex);
auto it = m_Sessions.find (e);
if (it != m_Sessions.end ())
return it->second;