Skip to content
Snippets Groups Projects
Unverified Commit 88321904 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

call: close audio at the end of a call

hangupCall() remove the calls in a dht pool. This means that the
operation can take quite some time. So, checkAudio() should be
done once the call is removed. In the other case, the audio layer
will remains open forever

Change-Id: Ia28c99001989215045389e141f694e7732bfcd1d
parent 21566439
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,7 @@ Call::removeCall() ...@@ -152,6 +152,7 @@ Call::removeCall()
setState(CallState::OVER); setState(CallState::OVER);
if (Recordable::isRecording()) if (Recordable::isRecording())
Recordable::stopRecording(); Recordable::stopRecording();
Manager::instance().checkAudio();
} }
const std::string& const std::string&
......
...@@ -1028,7 +1028,6 @@ Manager::hangupCall(const std::string& callId) ...@@ -1028,7 +1028,6 @@ Manager::hangupCall(const std::string& callId)
try { try {
call->hangup(0); call->hangup(0);
checkAudio();
} catch (const VoipLinkException &e) { } catch (const VoipLinkException &e) {
JAMI_ERR("%s", e.what()); JAMI_ERR("%s", e.what());
return false; return false;
...@@ -1190,8 +1189,6 @@ Manager::refuseCall(const std::string& id) ...@@ -1190,8 +1189,6 @@ Manager::refuseCall(const std::string& id)
call->refuse(); call->refuse();
checkAudio();
pimpl_->removeWaitingCall(id); pimpl_->removeWaitingCall(id);
// Disconnect streams // Disconnect streams
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment