Commit 2c5f610c authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Adrien Béraud

call: clean waiting calls on hangup.

Remove call from waiting list on hangup. Most calls
will be removed from waiting list on callFailure, but if call
destroyed too early this method would not be called. This patch
handles that case.

Change-Id: Ia2fe977f7e3211268d4a9d7f972445571a6f491c
parent 33151267
......@@ -1030,6 +1030,7 @@ Manager::hangupCall(const std::string& callId)
const auto& currentCallId(getCurrentCallId());
stopTone();
pimpl_->removeWaitingCall(callId);
/* We often get here when the call was hungup before being created */
auto call = getCallFromCallID(callId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment