1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-25 05:09:30 +00:00

sip: origin: Fix if condition in dispose()

This should make sure that origins go offline
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-06-09 14:14:23 +02:00
parent ccae753194
commit 736c17a4bc

View file

@ -954,7 +954,7 @@ init_sip_account (CallsSipOrigin *self,
goto err;
}
// setup_nua and setup_oper only after account data has been set
// setup_nua() and setup_sip_handles() only after account data has been set
self->nua = setup_nua (self);
if (self->nua == NULL) {
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
@ -1128,7 +1128,7 @@ calls_sip_origin_dispose (GObject *object)
g_clear_pointer (&self->oper->call_handle, nua_handle_unref);
g_clear_pointer (&self->oper->register_handle, nua_handle_unref);
if (!self->use_direct_connection && self->state == CALLS_ACCOUNT_OFFLINE)
if (!self->use_direct_connection && self->state != CALLS_ACCOUNT_OFFLINE)
go_online (CALLS_ACCOUNT (self), FALSE);
}