summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mandi_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mandi_daemon.c b/src/mandi_daemon.c
index 222025e..da7136e 100644
--- a/src/mandi_daemon.c
+++ b/src/mandi_daemon.c
@@ -154,7 +154,7 @@ static void mandi_daemon_exit(mandi_daemon_t *daemon, int exit_code) {
plugin->deinit(plugin, daemon->bus);
}
if (daemon->bus)
- dbus_connection_close(daemon->bus);
+ dbus_connection_unref(daemon->bus);
exit(exit_code);
}