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:
parent
13ebabfadb
commit
17325b3104
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue