Skip to content
Snippets Groups Projects
Commit e83013f6 authored by yanmorin's avatar yanmorin
Browse files

Bug fixes on hangup when the call didn't exist
parent f418734e
No related branches found
No related tags found
No related merge requests found
......@@ -273,9 +273,12 @@ ManagerImpl::hangupCall (CALLID id)
{
ost::MutexLock m(_mutex);
Call* call = getCall(id);
if (call == NULL && call->getState() != Call::Error) {
if (call == NULL) {
return -1;
}
if (call->getState() != Call::Error) {
return -1;
}
int result = call->hangup();
deleteCall(id);
stopTone(); // stop tone, like a 700 error: number not found Not Found
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment