forked from mirrors/linphone-iphone
cancel shutdown timer when call ends
This commit is contained in:
parent
835f9e4334
commit
7ed65a11f0
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue