Avoid destroying a locked isup call mutex.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3014 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-01-08 15:39:26 +00:00
parent 105963545b
commit c4c41e16e3
1 changed files with 2 additions and 0 deletions

View File

@ -1667,6 +1667,7 @@ bool SS7ISUPCall::sendEvent(SignallingEvent* event)
if (!event)
return false;
if (m_terminate || m_state == Released) {
mylock.drop();
delete event;
return false;
}
@ -1732,6 +1733,7 @@ bool SS7ISUPCall::sendEvent(SignallingEvent* event)
}
XDebug(isup(),DebugAll,"Call(%u). Event (%p,'%s') sent. Result: %s [%p]",
id(),event,event->name(),String::boolText(result),this);
mylock.drop();
delete event;
return result;
}