1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 07:53:24 +01:00

Fix A/V bug preventing the caller from being properly informed of call termination

This commit is contained in:
jfreegman 2019-07-12 11:51:08 -04:00
parent bb2257973e
commit 4b5a9abbd4
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -919,8 +919,9 @@ on_error:
void stop_current_call(ToxWindow *self)
{
toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL);
if (CallControl.pending_call) {
toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL);
callback_call_canceled(self->num);
} else {
stop_transmission(&CallControl.calls[self->num], self->num);