bus-util: check sd_bus_pending_method_calls() when determining whether a service is idle
This commit is contained in:
committed by
Luca Boccassi
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;
|
||||
|
||||
Reference in New Issue
Block a user