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();
sayer/1.4-spce2.6
Raphael Coeffic 15 years ago
parent 7545eb11f0
commit 60be6e60a7

@ -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<B2BSipEvent*>(ev);

Loading…
Cancel
Save