1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 11:35:32 +00:00

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.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-09-02 18:46:50 +02:00
parent a3d91d92b5
commit 56259fd1f1

View file

@ -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;