Fixed crash when dropping an inexistent oss call.

git-svn-id: http://yate.null.ro/svn/yate/trunk@26 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2004-08-20 12:30:15 +00:00
parent b86bd19a50
commit f5ca6ed0d9
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;