mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:53:02 +01:00
Fix A/V bug preventing the caller from being properly informed of call termination
This commit is contained in:
parent
bb2257973e
commit
4b5a9abbd4
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user