|
|
@ -49,7 +49,6 @@ namespace client |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (m_Session) { |
|
|
|
if (m_Session) { |
|
|
|
m_Session->DelSocket (shared_from_this ()); |
|
|
|
m_Session->DelSocket (shared_from_this ()); |
|
|
|
m_Session = nullptr; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -58,8 +57,8 @@ namespace client |
|
|
|
if (m_Session) |
|
|
|
if (m_Session) |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_Session->DelSocket (shared_from_this ()); |
|
|
|
m_Session->DelSocket (shared_from_this ()); |
|
|
|
m_Session->localDestination->StopAcceptingStreams (); |
|
|
|
if (m_Session->localDestination) |
|
|
|
m_Session = nullptr; |
|
|
|
m_Session->localDestination->StopAcceptingStreams (); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|