mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Small fix
This commit is contained in:
parent
565e95301f
commit
08ca08dcd9
@ -1485,8 +1485,10 @@ int msi_terminate_session ( MSISession *session )
|
||||
for (; idx < session->max_calls; idx ++) if ( session->calls[idx] ) {
|
||||
/* Cancel all? */
|
||||
uint16_t _it = 0;
|
||||
for ( ; _it < session->calls[idx]->peer_count; _it++ )
|
||||
msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" );
|
||||
/*for ( ; _it < session->calls[idx]->peer_count; _it++ )
|
||||
* FIXME: will not work on multiple peers, must cancel call for all peers
|
||||
*/
|
||||
msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user