diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-02 23:26:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-02 23:26:04 +0200 |
commit | 5d452f9ceceabf2bf69acb58e69a41fb41011e37 (patch) | |
tree | 22ab468398b186b958c2ec490b02e2b967403c9d /src/update-utmp.c | |
parent | 18ffdfda48c327f56cac0aabdc6bada91cc9b7df (diff) |
dbus: make sure to flush bus connection before disconnecting, so that no messages are lost
Diffstat (limited to 'src/update-utmp.c')
-rw-r--r-- | src/update-utmp.c | 5 |
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); |