Browse Source

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

* check for null localDestination in SAMSocket::Terminate
pull/509/head
Jeff Becker 9 years ago
parent
commit
924f281536
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 5
      SAM.cpp

5
SAM.cpp

@ -49,7 +49,6 @@ namespace client @@ -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 @@ -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…
Cancel
Save