Fixed crash when dropping an inexistent oss call.
git-svn-id: http://voip.null.ro/svn/yate@26 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
1d90be021d
commit
98bc3b1ac0
|
@ -438,8 +438,10 @@ bool DropHandler::received(Message &msg)
|
|||
{
|
||||
String id(msg.getValue("id"));
|
||||
if (id.null() || id.startsWith("oss/")) {
|
||||
Debug("OssDropper",DebugInfo,"Dropping all calls");
|
||||
s_chan->disconnect();
|
||||
if (s_chan) {
|
||||
Debug("OssDropper",DebugInfo,"Dropping call");
|
||||
s_chan->disconnect();
|
||||
}
|
||||
return !id.null();
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue