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"));
|
String id(msg.getValue("id"));
|
||||||
if (id.null() || id.startsWith("oss/")) {
|
if (id.null() || id.startsWith("oss/")) {
|
||||||
Debug("OssDropper",DebugInfo,"Dropping all calls");
|
if (s_chan) {
|
||||||
s_chan->disconnect();
|
Debug("OssDropper",DebugInfo,"Dropping call");
|
||||||
|
s_chan->disconnect();
|
||||||
|
}
|
||||||
return !id.null();
|
return !id.null();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue