mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 19:43:02 +01:00
Fix crash on AV error call state during active call
This commit is contained in:
parent
9f74d3a3a8
commit
2ec180789b
@ -228,7 +228,7 @@ int stop_transmission(Call *call, uint32_t friend_number)
|
||||
if ( call->ttas ) {
|
||||
TOXAV_ERR_CALL_CONTROL error = TOXAV_ERR_CALL_CONTROL_OK;
|
||||
|
||||
if ( CallControl.call_state != TOXAV_FRIEND_CALL_STATE_FINISHED )
|
||||
if ( CallControl.call_state > TOXAV_FRIEND_CALL_STATE_FINISHED )
|
||||
toxav_call_control(CallControl.av, friend_number, TOXAV_CALL_CONTROL_CANCEL, &error);
|
||||
|
||||
if ( error == TOXAV_ERR_CALL_CONTROL_OK ) {
|
||||
|
Loading…
Reference in New Issue
Block a user