always bring to closing state if termination requested

This commit is contained in:
orignal 2022-07-23 19:48:37 -04:00
parent 4d0047ae7c
commit 09aa96e486

View File

@ -187,10 +187,10 @@ namespace transport
{
if (m_State == eSSU2SessionStateEstablished || m_State == eSSU2SessionStateClosing)
{
m_State = eSSU2SessionStateClosing;
m_TerminationReason = reason;
SendTermination ();
}
}
m_State = eSSU2SessionStateClosing;
}
void SSU2Session::Established ()