mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-08 12:55:32 +00:00
sip-provider: Remove duplicated check
init() already checked if CALLS_SIP_TEST was set, no need to do it again in constructed()
This commit is contained in:
parent
4d402d2f79
commit
d790e35bc3
1 changed files with 2 additions and 6 deletions
|
@ -489,12 +489,6 @@ 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;
|
||||||
const gchar *env_sip_test;
|
|
||||||
|
|
||||||
env_sip_test = g_getenv ("CALLS_SIP_TEST");
|
|
||||||
if (env_sip_test && env_sip_test[0] != '\0')
|
|
||||||
self->use_memory_backend = TRUE;
|
|
||||||
|
|
||||||
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 ();
|
||||||
|
@ -643,6 +637,8 @@ calls_sip_provider_init (CallsSipProvider *self)
|
||||||
"Can not store credentials persistently!",
|
"Can not store credentials persistently!",
|
||||||
directory, err_save);
|
directory, err_save);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
self->use_memory_backend = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue