[calls] mm-provider: Avoid using g_error()



commit 1016505357b97f13870d6942b588b40f1b989c1c
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Sep 2 12:20:47 2022 +0200

    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 11462e46..168352ed 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;
   }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]