[gnome-settings-daemon/gnome-3-18] sharing: Don't print warning on call cancellation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-18] sharing: Don't print warning on call cancellation
- Date: Wed, 16 Mar 2016 11:23:28 +0000 (UTC)
commit 49848cf35f08e6fe6a46995955698814fa2bc529
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 c932908..cf716b4 100644
--- a/plugins/sharing/gsd-sharing-manager.c
+++ b/plugins/sharing/gsd-sharing-manager.c
@@ -554,7 +554,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]