From 08ca08dcd952d55a0df75e5efa25a5d8afa70e3f Mon Sep 17 00:00:00 2001 From: mannol Date: Sat, 24 May 2014 16:40:17 +0200 Subject: [PATCH] Small fix --- toxav/msi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toxav/msi.c b/toxav/msi.c index 048b13eb2..6c2460f0b 100755 --- a/toxav/msi.c +++ b/toxav/msi.c @@ -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!" ); }