Merge branch 'JFreegman-avcancel'

This commit is contained in:
irungentoo 2014-06-23 22:57:23 -04:00
commit 2231cd43d0
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -262,6 +262,10 @@ int toxav_cancel ( ToxAv *av, int32_t call_index, int peer_id, const char *reaso
return ErrorNoCall;
}
if ( av->msi_session->calls[call_index]->state != call_inviting ) {
return ErrorInvalidState;
}
return msi_cancel(av->msi_session, call_index, peer_id, reason);
}