chiark / gitweb /
bus: fix default exit on idle timeout
[elogind.git] / src / libsystemd-bus / bus-util.c
index 5a70fae77ffc4370d90b5325a2f790ebefd451a9..b77ae9168108bf66e00712ee7b5a50e12b39cdd1 100644 (file)
@@ -81,7 +81,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 : 5 * USEC_PER_SEC /* DEFAULT_EXIT_USEC */);
+                r = sd_event_run(e, exiting ? (uint64_t) -1 : DEFAULT_EXIT_USEC);
                 if (r < 0)
                         return r;