[gnome-settings-daemon/gnome-3-8] remote-display: Stop watching the D-Bus name on stop



commit ede9c19215951d6161a8d5a018149be6637662b6
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 25 12:11:43 2014 +0200

    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

 .../remote-display/gsd-remote-display-manager.c    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
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);


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