From d790e35bc3e1af3f275e906758ec106884600dfc Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sun, 12 Feb 2023 09:36:05 +0100 Subject: [PATCH] sip-provider: Remove duplicated check init() already checked if CALLS_SIP_TEST was set, no need to do it again in constructed() --- plugins/provider/sip/calls-sip-provider.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/provider/sip/calls-sip-provider.c b/plugins/provider/sip/calls-sip-provider.c index 6a275c6..4057bf4 100644 --- a/plugins/provider/sip/calls-sip-provider.c +++ b/plugins/provider/sip/calls-sip-provider.c @@ -489,12 +489,6 @@ calls_sip_provider_constructed (GObject *object) CallsSipProvider *self = CALLS_SIP_PROVIDER (object); 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 (!self->use_memory_backend) { g_autoptr (GKeyFile) key_file = g_key_file_new (); @@ -643,6 +637,8 @@ calls_sip_provider_init (CallsSipProvider *self) "Can not store credentials persistently!", directory, err_save); } + } else { + self->use_memory_backend = TRUE; } }