[asterisk-scf-commits] asterisk-scf/integration/media_transport_udptl.git branch "retry_deux" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Apr 30 12:11:01 CDT 2012
branch "retry_deux" has been updated
via 657df2d9526e90cfa0a8a72c061b805c7982693b (commit)
from e04e6d5fbc050d93652d683ed613e16aaaacf66e (commit)
Summary of changes:
src/UdptlStateReplicatorListener.cpp | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 657df2d9526e90cfa0a8a72c061b805c7982693b
Author: Brent Eagles <beagles at digium.com>
Date: Mon Apr 30 14:40:40 2012 -0230
Fixed a silly bug in the replication listener item that would cause crashes
if an item was destroyed before it had setSession() called on it or
setSession() with a nil reference.
diff --git a/src/UdptlStateReplicatorListener.cpp b/src/UdptlStateReplicatorListener.cpp
index a231696..82aed82 100644
--- a/src/UdptlStateReplicatorListener.cpp
+++ b/src/UdptlStateReplicatorListener.cpp
@@ -39,7 +39,19 @@ public:
~UdptlStateReplicatorItem()
{
- mSession->destroy();
+ if (mSession)
+ {
+ try
+ {
+ mSession->destroy();
+ }
+ catch (...)
+ {
+ //
+ // Can't do much in a destructor!
+ //
+ }
+ }
}
//
-----------------------------------------------------------------------
--
asterisk-scf/integration/media_transport_udptl.git
More information about the asterisk-scf-commits
mailing list