* #7078: audio: suspend audio processing if peer hungup and no calls remain

checkAudio() was being called before the call was removed from the
call list.
This commit is contained in:
Tristan Matthews
2013-06-27 16:23:55 -04:00
parent 53b2393f28
commit 9dc5ca34fd
3 changed files with 9 additions and 9 deletions

View File

@ -1687,7 +1687,6 @@ void ManagerImpl::peerHungupCall(const std::string& call_id)
if (not incomingCallsWaiting())
stopTone();
checkAudio();
removeStream(call_id);
}

View File

@ -1032,14 +1032,6 @@ class ManagerImpl {
void registerAccounts();
void saveHistory();
private:
NON_COPYABLE(ManagerImpl);
/**
* Get a map with all the current SIP and IAX accounts
*/
AccountMap getAllAccounts() const;
/**
* Suspends SFLphone's audio processing if no calls remain, allowing
* other applications to resume audio.
@ -1049,6 +1041,14 @@ class ManagerImpl {
void
checkAudio();
private:
NON_COPYABLE(ManagerImpl);
/**
* Get a map with all the current SIP and IAX accounts
*/
AccountMap getAllAccounts() const;
/**
* To handle the persistent history
* TODO: move this to ConfigurationManager

View File

@ -1598,6 +1598,7 @@ SIPVoIPLink::SIPCallClosed(SIPCall *call)
Manager::instance().peerHungupCall(id);
removeSipCall(id);
Manager::instance().checkAudio();
}
void