mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'JFreegman-avcancel'
This commit is contained in:
commit
2231cd43d0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user