[gnome-settings-daemon/gnome-3-10] remote-display: Stop watching the D-Bus name on stop
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-10] remote-display: Stop watching the D-Bus name on stop
- Date: Thu, 25 Sep 2014 10:17:39 +0000 (UTC)
commit 37f8b6593080230497332798693cda17a42737fa
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 a54fb7c..ab49ee5 100644
--- a/plugins/remote-display/gsd-remote-display-manager.c
+++ b/plugins/remote-display/gsd-remote-display-manager.c
@@ -245,6 +245,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]