Call now gets terminated when other person times out.

This commit is contained in:
irungentoo 2014-07-10 18:20:07 -04:00
parent 1d6c393473
commit 271f03a717
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -959,6 +959,7 @@ void handle_remote_connection_change(Messenger *messenger, int friend_num, uint8
for ( ; i < session->calls[j]->peer_count; i ++ ) for ( ; i < session->calls[j]->peer_count; i ++ )
if ( session->calls[j]->peers[i] == friend_num ) { if ( session->calls[j]->peers[i] == friend_num ) {
invoke_callback(j, MSI_OnPeerTimeout); invoke_callback(j, MSI_OnPeerTimeout);
terminate_call(session, session->calls[j]);
LOGGER_DEBUG("Remote: %d timed out!", friend_num); LOGGER_DEBUG("Remote: %d timed out!", friend_num);
return; /* TODO: On group calls change behaviour */ return; /* TODO: On group calls change behaviour */
} }