1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 12:25:31 +00:00

sip-provider: Chain up to constructed early

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-04-10 08:53:43 +02:00
parent 243753d064
commit 94cfbd83b2

View file

@ -487,8 +487,10 @@ static void
calls_sip_provider_constructed (GObject *object) calls_sip_provider_constructed (GObject *object)
{ {
CallsSipProvider *self = CALLS_SIP_PROVIDER (object); CallsSipProvider *self = CALLS_SIP_PROVIDER (object);
g_autoptr (GError) error = NULL; g_autoptr (GError) error = NULL;
G_OBJECT_CLASS (calls_sip_provider_parent_class)->constructed (object);
if (calls_sip_provider_init_sofia (self, &error)) { if (calls_sip_provider_init_sofia (self, &error)) {
if (!self->use_memory_backend) { if (!self->use_memory_backend) {
g_autoptr (GKeyFile) key_file = g_key_file_new (); g_autoptr (GKeyFile) key_file = g_key_file_new ();
@ -500,7 +502,7 @@ calls_sip_provider_constructed (GObject *object)
else else
g_warning ("Error loading keyfile '%s': %s", self->filename, error->message); g_warning ("Error loading keyfile '%s': %s", self->filename, error->message);
goto out; return;
} }
calls_sip_provider_load_accounts (self, key_file); calls_sip_provider_load_accounts (self, key_file);
@ -509,9 +511,6 @@ calls_sip_provider_constructed (GObject *object)
g_warning ("Could not initialize sofia stack: %s", error->message); g_warning ("Could not initialize sofia stack: %s", error->message);
} }
out:
G_OBJECT_CLASS (calls_sip_provider_parent_class)->constructed (object);
} }