1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 01:43:01 +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) void stop_current_call(ToxWindow *self)
{ {
if (CallControl.pending_call) {
toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL); toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL);
if (CallControl.pending_call) {
callback_call_canceled(self->num); callback_call_canceled(self->num);
} else { } else {
stop_transmission(&CallControl.calls[self->num], self->num); stop_transmission(&CallControl.calls[self->num], self->num);