check for dead calls also in PausedByRemote state

This commit is contained in:
Simon Morlat 2015-10-13 11:13:33 +02:00
parent 8f327cf558
commit ab41327e00

View file

@ -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)