mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
fixed crash
This commit is contained in:
parent
bd9e68e69f
commit
7949ffe41e
3 changed files with 10 additions and 2 deletions
1
SSU.cpp
1
SSU.cpp
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue