summaryrefslogtreecommitdiff
path: root/src/update-utmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/update-utmp.c')
-rw-r--r--src/update-utmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/update-utmp.c b/src/update-utmp.c
index e45bee10ce..b06f5a06cb 100644
--- a/src/update-utmp.c
+++ b/src/update-utmp.c
@@ -406,8 +406,9 @@ finish:
#endif
if (c.bus) {
- dbus_connection_close(c.bus);
- dbus_connection_unref(c.bus);
+ dbus_connection_flush(c.bus);
+ dbus_connection_close(c.bus);
+ dbus_connection_unref(c.bus);
}
dbus_error_free(&error);