diff options
-rw-r--r-- | config/dbus-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/dbus-core.c b/config/dbus-core.c index 43d628194..b0fd92de4 100644 --- a/config/dbus-core.c +++ b/config/dbus-core.c @@ -233,8 +233,8 @@ dbus_core_init(void) memset(&bus_info, 0, sizeof(bus_info)); bus_info.fd = -1; bus_info.hooks = NULL; - bus_info.connection = NULL; - bus_info.timer = TimerSet(NULL, 0, 1, reconnect_timer, NULL); + if (!connect_to_bus()) + bus_info.timer = TimerSet(NULL, 0, 1, reconnect_timer, NULL); return 1; } |