From 924f2815365ca02cd37c37d791582461e1a7238e Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 2 Apr 2016 08:05:14 -0400 Subject: [PATCH] * Don't set m_Session to nullptr in SAMSocket::Terminate * check for null localDestination in SAMSocket::Terminate --- SAM.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SAM.cpp b/SAM.cpp index ecdd513d..bcb4623a 100644 --- a/SAM.cpp +++ b/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; }