mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
close SSU session if not established
This commit is contained in:
parent
2f601ce02f
commit
9ee049aa63
4
SSU.cpp
4
SSU.cpp
@ -83,7 +83,8 @@ namespace ssu
|
||||
}
|
||||
else
|
||||
{
|
||||
ScheduleTermination ();
|
||||
if (m_State == eSessionStateEstablished)
|
||||
ScheduleTermination ();
|
||||
/* // check for duplicate
|
||||
const uint8_t * iv = ((SSUHeader *)buf)->iv;
|
||||
if (m_ReceivedIVs.count (iv)) return; // duplicate detected
|
||||
@ -652,7 +653,6 @@ namespace ssu
|
||||
if (m_State != eSessionStateFailed)
|
||||
{
|
||||
m_State = eSessionStateFailed;
|
||||
Close ();
|
||||
m_Server.DeleteSession (this); // delete this
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user