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:
paulc 2004-08-20 12:30:15 +00:00
parent 1d90be021d
commit 98bc3b1ac0
1 changed files with 4 additions and 2 deletions

View File

@ -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;