mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed crash and few other small issues
This commit is contained in:
parent
74815d7462
commit
06088ff7a2
3 changed files with 11 additions and 7 deletions
3
SSU.cpp
3
SSU.cpp
|
@ -853,8 +853,9 @@ namespace ssu
|
|||
auto it = m_Sessions.find (oldEndpoint);
|
||||
if (it != m_Sessions.end ())
|
||||
{
|
||||
auto session = it->second;
|
||||
m_Sessions.erase (it);
|
||||
m_Sessions[newEndpoint] = it->second;
|
||||
m_Sessions[newEndpoint] = session;
|
||||
LogPrint ("SSU session ressigned from ", oldEndpoint.address ().to_string (), ":", oldEndpoint.port (),
|
||||
" to ", newEndpoint.address ().to_string (), ":", newEndpoint.port ());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue