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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Jun 23 12:28:49 CDT 2011


branch "master" has been updated
       via  00c09a3b1e9fc03026b3f80fc6f9429ebb1ca828 (commit)
      from  bde7592a43f86d9b223d7568300da0d161766a3f (commit)

Summary of changes:
 src/BridgeManagerImpl.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 00c09a3b1e9fc03026b3f80fc6f9429ebb1ca828
Author: Mark Michelson <mmichelson at digium.com>
Date:   Thu Jun 23 12:28:37 2011 -0500

    Erase elements when removing default bridge listeners.

diff --git a/src/BridgeManagerImpl.cpp b/src/BridgeManagerImpl.cpp
index 4c132dd..e75e7db 100644
--- a/src/BridgeManagerImpl.cpp
+++ b/src/BridgeManagerImpl.cpp
@@ -280,8 +280,8 @@ void BridgeManagerImpl::removeDefaultBridgeListener(const BridgeListenerPrx& toR
     }
     boost::unique_lock<boost::shared_mutex> lock(mLock);
     statePreCheck(BOOST_CURRENT_FUNCTION);
-    remove_if(mState->defaultBridgeListeners.begin(), mState->defaultBridgeListeners.end(), 
-      IdentityComparePredicate<BridgeListenerPrx>(toRemove));
+    mState->defaultBridgeListeners.erase(remove_if(mState->defaultBridgeListeners.begin(), mState->defaultBridgeListeners.end(), 
+      IdentityComparePredicate<BridgeListenerPrx>(toRemove)), mState->defaultBridgeListeners.end());
     update();
 }
 

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


-- 
asterisk-scf/release/bridging.git



More information about the asterisk-scf-commits mailing list