From 60be6e60a7d878a25fb11edfd35a2ffd02004da5 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 10 Apr 2011 16:56:08 +0200 Subject: [PATCH] b/f: avoid relaying events if the session is stopped. Without this patch, a new callee session would be created when AmB2BCallerSession::relayEvent(...) is called after setStopped(); terminatedOtherLeg(); --- core/AmB2BSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 0840d529..3a32b60c 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -902,7 +902,7 @@ void AmB2BCallerSession::onB2BEvent(B2BEvent* ev) int AmB2BCallerSession::relayEvent(AmEvent* ev) { - if(other_id.empty()){ + if(other_id.empty() && !getStopped()){ bool create_callee = false; B2BSipEvent* sip_ev = dynamic_cast(ev);