From 56259fd1f11b9ca7c19b7f2ec2471c4f79e395bc Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 2 Sep 2021 18:46:50 +0200 Subject: [PATCH] sip: origin: Destroy registration handle on deinit Otherwise shutting down may be timing out, because there are pending messages. Calling nua_destroy_handle() will kill any dialog/leg. --- plugins/sip/calls-sip-origin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c index 08765b2..18d3f93 100644 --- a/plugins/sip/calls-sip-origin.c +++ b/plugins/sip/calls-sip-origin.c @@ -1037,6 +1037,8 @@ deinit_sip_account (CallsSipOrigin *self) remove_calls (self, NULL); if (self->nua) { + g_debug ("Clearing any handles"); + g_clear_pointer (&self->oper->register_handle, nua_handle_destroy); g_debug ("Requesting nua_shutdown ()"); self->is_nua_shutdown = FALSE; self->is_shutdown_success = FALSE;