chiark / gitweb /
bus: automatically flush bus queue when we exit the event loop
[elogind.git] / src / libsystemd-bus / bus-util.c
index 0046b486cf0225e4cb477943d0c447daca300f9a..c72610466dc4e9d1cd4b37e88042ba1174b2e929 100644 (file)
@@ -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;