1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

sip: Don't drop errors when recreating sip account

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/737>
This commit is contained in:
Guido Günther 2024-06-22 19:44:03 +02:00 committed by Marge Bot
parent 13ebabfadb
commit 17325b3104

View file

@ -1267,8 +1267,12 @@ deinit_sip_account (CallsSipOrigin *self)
static void
recreate_sip (CallsSipOrigin *self)
{
if (deinit_sip_account (self))
init_sip_account (self, NULL);
if (deinit_sip_account (self)) {
g_autoptr (GError) err = NULL;
if (!init_sip_account (self, &err))
g_warning ("Failed to re-init sip account: %s", err->message);
}
}