mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
check for dead calls also in PausedByRemote state
This commit is contained in:
parent
8f327cf558
commit
ab41327e00
1 changed files with 2 additions and 1 deletions
|
|
@ -4366,7 +4366,8 @@ void linphone_call_background_tasks(LinphoneCall *call, bool_t one_second_elapse
|
|||
linphone_call_handle_stream_events(call, call->main_audio_stream_index);
|
||||
linphone_call_handle_stream_events(call, call->main_video_stream_index);
|
||||
linphone_call_handle_stream_events(call, call->main_text_stream_index);
|
||||
if (call->state==LinphoneCallStreamsRunning && one_second_elapsed && call->audiostream!=NULL
|
||||
if ((call->state == LinphoneCallStreamsRunning ||
|
||||
call->state == LinphoneCallPausedByRemote) && one_second_elapsed && call->audiostream!=NULL
|
||||
&& call->audiostream->ms.state==MSStreamStarted && disconnect_timeout>0 )
|
||||
disconnected=!audio_stream_alive(call->audiostream,disconnect_timeout);
|
||||
if (disconnected)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue