[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "queue-shutdown" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Jun 8 14:19:39 CDT 2011


branch "queue-shutdown" has been updated
       via  397eed56f8c9621c4e6a3fc9910405d5acca69af (commit)
      from  e8b826ae01d1de3261627a3f75ab1bca6b337ce4 (commit)

Summary of changes:
 src/PJSipSessionModuleConstruction.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 397eed56f8c9621c4e6a3fc9910405d5acca69af
Author: Mark Michelson <mmichelson at digium.com>
Date:   Wed Jun 8 14:19:46 2011 -0500

    Add try-catch block around a queue call that I had missed earlier.

diff --git a/src/PJSipSessionModuleConstruction.cpp b/src/PJSipSessionModuleConstruction.cpp
index 9649b3c..9db407e 100644
--- a/src/PJSipSessionModuleConstruction.cpp
+++ b/src/PJSipSessionModuleConstruction.cpp
@@ -158,7 +158,14 @@ PJSipSessionModule::PJSipSessionModule(pjsip_endpoint *endpt,
 
 PJSipSessionModule::~PJSipSessionModule()
 {
-    mPoolQueue->shutDown();
+    try
+    {
+        mPoolQueue->shutDown();
+    }
+    catch (const ShuttingDown&)
+    {
+        lg(Warning) << "Attempted to shut down a Queue that is already shut down.";
+    }
 }
 
 }; //end namespace SipSessionManager

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list