mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Call now gets terminated when other person times out.
This commit is contained in:
parent
1d6c393473
commit
271f03a717
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user