sip: go offline when disposing CallsSipOrigin

This commit is contained in:
Evangelos Ribeiro Tzaras
2021-03-01 17:30:09 +01:00
parent 4521033127
commit afd5b5d6a8

View File

@@ -871,6 +871,9 @@ calls_sip_origin_dispose (GObject *object)
if (self->oper) {
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 == SIP_ACCOUNT_OFFLINE)
calls_sip_origin_go_online (self, FALSE);
}
if (self->nua) {