]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-util: check sd_bus_pending_method_calls() when determining whether a service... 32720/head
authorLennart Poettering <lennart@poettering.net>
Wed, 8 May 2024 11:08:38 +0000 (13:08 +0200)
committerLuca Boccassi <bluca@debian.org>
Tue, 11 Jun 2024 22:17:38 +0000 (23:17 +0100)
src/shared/bus-util.c

index 30f9602b1edbcf72bfb49f8158f3ba6ddf2601c2..216c16f039714a7e698dbf150e8ac60da6a931d5 100644 (file)
@@ -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;