[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue May 24 18:11:53 CDT 2011


branch "master" has been updated
       via  b78b8a44294837357cece3e68fbafb00b2344c20 (commit)
      from  129d4f1fa49096b11f99e553c2c1a8bb6f8041a4 (commit)

Summary of changes:
 src/SipSession.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit b78b8a44294837357cece3e68fbafb00b2344c20
Author: Joshua Colp <jcolp at digium.com>
Date:   Tue May 24 20:01:36 2011 -0300

    Be more resilient against components invoking operations on sessions that have gone away.

diff --git a/src/SipSession.cpp b/src/SipSession.cpp
index baf2bf3..315d1c8 100644
--- a/src/SipSession.cpp
+++ b/src/SipSession.cpp
@@ -1117,6 +1117,12 @@ void SipSession::enqueueSessionWork(const SuspendableWorkPtr& task)
         static_cast<PJSipSessionModInfo*>(
                 mImplPriv->mInviteSession->mod_data[mImplPriv->mManager->getSessionModule()->getModule().id]);
 
+    if (!session_mod_info)
+    {
+	lg(Debug) << "No session any longer. Unable to queue operation";
+	return;
+    }
+
     SessionWorkPtr sessionWork = session_mod_info->getSessionWork();
 
     sessionWork->enqueueWork(task);

-----------------------------------------------------------------------


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list