summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-18 01:43:11 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-18 01:43:55 +0200
commitabc5fe72503fcc30998334e73c5d8e58f9a9d85e (patch)
treebb36fa425bfab5415b38994ced2813008e4362dd /src/libsystemd-bus/bus-util.c
parentb75b4db0af92514fce3955a1350b77c3c42e7f77 (diff)
bus: automatically flush bus queue when we exit the event loop
This way, we do not have to call it manually
Diffstat (limited to 'src/libsystemd-bus/bus-util.c')
-rw-r--r--src/libsystemd-bus/bus-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c
index 0046b486cf..c72610466d 100644
--- a/src/libsystemd-bus/bus-util.c
+++ b/src/libsystemd-bus/bus-util.c
@@ -83,7 +83,7 @@ int bus_event_loop_with_idle(sd_event *e, sd_bus *bus, const char *name, usec_t
if (r == SD_EVENT_FINISHED)
break;
- r = sd_event_run(e, exiting ? (uint64_t) -1 : DEFAULT_EXIT_USEC);
+ r = sd_event_run(e, exiting ? (uint64_t) -1 : timeout);
if (r < 0)
return r;