1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-29 13:27:46 +02:00

Fix crash on AV error call state during active call

This commit is contained in:
Jfreegman 2016-07-11 17:42:57 -04:00
parent 9f74d3a3a8
commit 2ec180789b
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -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 ) {