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

*** empty log message ***

parent ae223f55
No related branches found
No related tags found
No related merge requests found
......@@ -276,10 +276,10 @@ ManagerImpl::hangupCall (CALLID id)
if (call == NULL) {
return -1;
}
if (call->getState() == Call::Error) {
return -1;
int result = -1;
if (call->getState() != Call::Error) {
result = call->hangup();
}
int result = call->hangup();
deleteCall(id);
stopTone(); // stop tone, like a 700 error: number not found Not Found
return result;
......
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