cancel shutdown timer when call ends

This commit is contained in:
Benjamin Reis 2016-12-08 11:15:09 +01:00
parent 835f9e4334
commit 7ed65a11f0
2 changed files with 2 additions and 3 deletions

View file

@ -7020,13 +7020,12 @@ void linphone_core_soundcard_hint_check( LinphoneCore* lc){
/* check if the remaining calls are paused */
while( the_calls ){
call = the_calls->data;
if( call->state != LinphoneCallPausing && call->state != LinphoneCallPaused ){
if( call->state != LinphoneCallPausing && call->state != LinphoneCallPaused && call->state != LinphoneCallEnd && call->state != LinphoneCallError){
dont_need_sound = FALSE;
break;
}
the_calls = the_calls->next;
}
/* if no more calls or all calls are paused, we can free the soundcard */
if ( (lc->calls==NULL || dont_need_sound) && !lc->use_files && !use_rtp_io){
ms_message("Notifying soundcard that we don't need it anymore for calls.");

@ -1 +1 @@
Subproject commit 89a02e26d29eb400ea6dde2fbfad2e357e8b2792
Subproject commit 52c02e402c502359b0b6c95d8afcf4435609b8ab