mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
session closing state
This commit is contained in:
parent
ca4414d15a
commit
2f44d99a74
3 changed files with 25 additions and 18 deletions
|
@ -168,12 +168,15 @@ namespace transport
|
|||
}
|
||||
}
|
||||
|
||||
void SSU2Session::TerminateByTimeout ()
|
||||
void SSU2Session::RequestTermination ()
|
||||
{
|
||||
SendTermination ();
|
||||
m_Server.GetService ().post (std::bind (&SSU2Session::Terminate, shared_from_this ()));
|
||||
}
|
||||
|
||||
if (m_State == eSSU2SessionStateEstablished || m_State == eSSU2SessionStateClosing)
|
||||
{
|
||||
m_State = eSSU2SessionStateClosing;
|
||||
SendTermination ();
|
||||
}
|
||||
}
|
||||
|
||||
void SSU2Session::Established ()
|
||||
{
|
||||
m_State = eSSU2SessionStateEstablished;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue