[gnome-settings-daemon] sharing: Don't print warning on call cancellation



commit 86512f6837a5af76d0b1a9e5ce722a97acee594e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 15 14:57:13 2016 +0100

    sharing: Don't print warning on call cancellation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763689

 plugins/sharing/gsd-sharing-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sharing/gsd-sharing-manager.c b/plugins/sharing/gsd-sharing-manager.c
index e218c62..13e09b5 100644
--- a/plugins/sharing/gsd-sharing-manager.c
+++ b/plugins/sharing/gsd-sharing-manager.c
@@ -551,7 +551,8 @@ on_bus_gotten (GObject               *source_object,
 
         connection = g_bus_get_finish (res, &error);
         if (connection == NULL) {
-                g_warning ("Could not get session bus: %s", error->message);
+                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+                        g_warning ("Could not get session bus: %s", error->message);
                 g_error_free (error);
                 return;
         }


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