From: Lennart Poettering Date: Wed, 8 May 2024 11:08:38 +0000 (+0200) Subject: bus-util: check sd_bus_pending_method_calls() when determining whether a service... X-Git-Tag: v257-rc1~1197^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75fb956f70513669a3f09bab93c3eb76d72dbe4f;p=thirdparty%2Fsystemd.git bus-util: check sd_bus_pending_method_calls() when determining whether a service is idle --- diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 30f9602b1ed..216c16f0397 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -122,7 +122,9 @@ int bus_event_loop_with_idle( if (r == SD_EVENT_FINISHED) break; - if (check_idle) + if (sd_bus_pending_method_calls(bus) > 0) + idle = false; + else if (check_idle) idle = check_idle(userdata); else idle = true;