1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-08 22:57:52 +00:00

* Don't set m_Session to nullptr in SAMSocket::Terminate

* check for null localDestination in SAMSocket::Terminate
This commit is contained in:
Jeff Becker 2016-04-02 08:05:14 -04:00
parent 751b95d4af
commit 924f281536
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -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;
} }