summaryrefslogtreecommitdiff
path: root/config/dbus.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-01-26 09:39:54 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-01-29 09:13:25 +1030
commit975ab11799c819a81da1dfe83505194410dbcb95 (patch)
tree2537155b95b049d83e9513df76bb0cbc0d5c9fa4 /config/dbus.c
parent7dde5a694a06efed0a9186f05d33f5be6f5dba71 (diff)
config: don't reset connection info on disconnect.
If dbus is restarted, we try to connect again and this is difficult if the busname and/or busobject is not set. (cherry picked from commit 210eeef495770c1883c842ff003c28ce25f279d4)
Diffstat (limited to 'config/dbus.c')
-rw-r--r--config/dbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/dbus.c b/config/dbus.c
index f6ac4c11c..0be42afb6 100644
--- a/config/dbus.c
+++ b/config/dbus.c
@@ -396,9 +396,6 @@ err_start:
static void
disconnect_hook(void *data)
{
- struct connection_info *info = data;
-
- reset_info(info);
}
#if 0
@@ -440,4 +437,6 @@ void
config_dbus_fini(void)
{
config_dbus_core_remove_hook(&core_hook);
+ connection_data.busname[0] = '\0';
+ connection_data.busobject[0] = '\0';
}