[gnome-settings-daemon] rfkill: clear id after unowning bus name



commit 04cfff829a2b297b8c174d7ed6bd6d94e43cc8d2
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jan 18 16:52:45 2014 -0800

    rfkill: clear id after unowning bus name
    
    Or we'll try to unown the same bus id again next time
    gsd_rfkill_manager_stop() is called.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724573

 plugins/rfkill/gsd-rfkill-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/rfkill/gsd-rfkill-manager.c b/plugins/rfkill/gsd-rfkill-manager.c
index aaacb9c..52b67c7 100644
--- a/plugins/rfkill/gsd-rfkill-manager.c
+++ b/plugins/rfkill/gsd-rfkill-manager.c
@@ -657,8 +657,10 @@ gsd_rfkill_manager_stop (GsdRfkillManager *manager)
 
         g_debug ("Stopping rfkill manager");
 
-        if (manager->priv->name_id != 0)
+        if (manager->priv->name_id != 0) {
                 g_bus_unown_name (manager->priv->name_id);
+                manager->priv->name_id = 0;
+        }
 
         g_clear_pointer (&p->introspection_data, g_dbus_node_info_unref);
         g_clear_object (&p->connection);


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