mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
* Don't set m_Session to nullptr in SAMSocket::Terminate
* check for null localDestination in SAMSocket::Terminate
This commit is contained in:
parent
751b95d4af
commit
924f281536
5
SAM.cpp
5
SAM.cpp
@ -49,7 +49,6 @@ namespace client
|
||||
{
|
||||
if (m_Session) {
|
||||
m_Session->DelSocket (shared_from_this ());
|
||||
m_Session = nullptr;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -58,8 +57,8 @@ namespace client
|
||||
if (m_Session)
|
||||
{
|
||||
m_Session->DelSocket (shared_from_this ());
|
||||
m_Session->localDestination->StopAcceptingStreams ();
|
||||
m_Session = nullptr;
|
||||
if (m_Session->localDestination)
|
||||
m_Session->localDestination->StopAcceptingStreams ();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user