[calls] sip: origin: Destroy registration handle on deinit
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] sip: origin: Destroy registration handle on deinit
- Date: Thu, 2 Sep 2021 19:49:27 +0000 (UTC)
commit 56259fd1f11b9ca7c19b7f2ec2471c4f79e395bc
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Thu Sep 2 18:46:50 2021 +0200
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 08765b22..18d3f93b 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]