Blob Blame History Raw
From ede9c19215951d6161a8d5a018149be6637662b6 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Thu, 25 Sep 2014 12:11:43 +0200
Subject: [PATCH 1/3] remote-display: Stop watching the D-Bus name on stop

So that we don't get called out when the plugin is stopped.

https://bugzilla.redhat.com/show_bug.cgi?id=1145144
---
 plugins/remote-display/gsd-remote-display-manager.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/remote-display/gsd-remote-display-manager.c b/plugins/remote-display/gsd-remote-display-manager.c
index 031c5d1..b58b467 100644
--- a/plugins/remote-display/gsd-remote-display-manager.c
+++ b/plugins/remote-display/gsd-remote-display-manager.c
@@ -206,6 +206,11 @@ gsd_remote_display_manager_stop (GsdRemoteDisplayManager *manager)
 {
         g_debug ("Stopping remote_display manager");
 
+        if (manager->priv->vino_watch_id > 0) {
+                g_bus_unwatch_name (manager->priv->vino_watch_id);
+                manager->priv->vino_watch_id = 0;
+	}
+
 	if (manager->priv->cancellable != NULL) {
 		g_cancellable_cancel (manager->priv->cancellable);
 		g_clear_object (&manager->priv->cancellable);
-- 
2.1.0