mirror of
https://github.com/systemd/systemd
synced 2024-07-08 20:15:55 +00:00
bus-util: check sd_bus_pending_method_calls() when determining whether a service is idle
This commit is contained in:
parent
48ce0824dc
commit
75fb956f70
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user