From 1016505357b97f13870d6942b588b40f1b989c1c Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 2 Sep 2022 12:20:47 +0200 Subject: [PATCH] mm-provider: Avoid using g_error() First steps in closing #4. --- plugins/provider/mm/calls-mm-provider.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/provider/mm/calls-mm-provider.c b/plugins/provider/mm/calls-mm-provider.c index 11462e4..168352e 100644 --- a/plugins/provider/mm/calls-mm-provider.c +++ b/plugins/provider/mm/calls-mm-provider.c @@ -278,9 +278,10 @@ mm_manager_new_cb (GDBusConnection *connection, self->mm = mm_manager_new_finish (res, &error); if (!self->mm) { - g_error ("Error creating ModemManager Manager: %s", - error->message); - g_assert_not_reached (); + g_warning ("Error creating ModemManager Manager: %s", + error->message); + update_status (self); + return; }