mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
close SSU session if not established
This commit is contained in:
parent
2f601ce02f
commit
9ee049aa63
1 changed files with 2 additions and 2 deletions
2
SSU.cpp
2
SSU.cpp
|
@ -83,6 +83,7 @@ namespace ssu
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (m_State == eSessionStateEstablished)
|
||||||
ScheduleTermination ();
|
ScheduleTermination ();
|
||||||
/* // check for duplicate
|
/* // check for duplicate
|
||||||
const uint8_t * iv = ((SSUHeader *)buf)->iv;
|
const uint8_t * iv = ((SSUHeader *)buf)->iv;
|
||||||
|
@ -652,7 +653,6 @@ namespace ssu
|
||||||
if (m_State != eSessionStateFailed)
|
if (m_State != eSessionStateFailed)
|
||||||
{
|
{
|
||||||
m_State = eSessionStateFailed;
|
m_State = eSessionStateFailed;
|
||||||
Close ();
|
|
||||||
m_Server.DeleteSession (this); // delete this
|
m_Server.DeleteSession (this); // delete this
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue