diff options
-rwxr-xr-x | toxav/msi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/toxav/msi.c b/toxav/msi.c index 048b13eb..6c2460f0 100755 --- a/toxav/msi.c +++ b/toxav/msi.c | |||
@@ -1485,8 +1485,10 @@ int msi_terminate_session ( MSISession *session ) | |||
1485 | for (; idx < session->max_calls; idx ++) if ( session->calls[idx] ) { | 1485 | for (; idx < session->max_calls; idx ++) if ( session->calls[idx] ) { |
1486 | /* Cancel all? */ | 1486 | /* Cancel all? */ |
1487 | uint16_t _it = 0; | 1487 | uint16_t _it = 0; |
1488 | for ( ; _it < session->calls[idx]->peer_count; _it++ ) | 1488 | /*for ( ; _it < session->calls[idx]->peer_count; _it++ ) |
1489 | msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" ); | 1489 | * FIXME: will not work on multiple peers, must cancel call for all peers |
1490 | */ | ||
1491 | msi_cancel ( session, idx, session->calls[idx]->peers [_it], "MSI session terminated!" ); | ||
1490 | } | 1492 | } |
1491 | 1493 | ||
1492 | 1494 | ||