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:
@@ -1267,8 +1267,12 @@ deinit_sip_account (CallsSipOrigin *self)
|
|||||||
static void
|
static void
|
||||||
recreate_sip (CallsSipOrigin *self)
|
recreate_sip (CallsSipOrigin *self)
|
||||||
{
|
{
|
||||||
if (deinit_sip_account (self))
|
if (deinit_sip_account (self)) {
|
||||||
init_sip_account (self, NULL);
|
g_autoptr (GError) err = NULL;
|
||||||
|
|
||||||
|
if (!init_sip_account (self, &err))
|
||||||
|
g_warning ("Failed to re-init sip account: %s", err->message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user