mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
sip: origin: Fix if condition in dispose()
This should make sure that origins go offline
This commit is contained in:
parent
ccae753194
commit
736c17a4bc
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue