summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mandi_daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mandi_daemon.c b/src/mandi_daemon.c
index df60e4e..f2ce040 100644
--- a/src/mandi_daemon.c
+++ b/src/mandi_daemon.c
@@ -153,7 +153,8 @@ static void mandi_daemon_exit(mandi_daemon_t *daemon, int exit_code) {
plugin = *ptr;
plugin->deinit(plugin, daemon->bus);
}
- /* unregister dbus */
+ if (daemon->bus)
+ dbus_connection_close(daemon->bus);
exit(exit_code);
}