Browse Source

always bring to closing state if termination requested

pull/1786/head
orignal 2 years ago
parent
commit
09aa96e486
  1. 2
      libi2pd/SSU2Session.cpp

2
libi2pd/SSU2Session.cpp

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

Loading…
Cancel
Save