diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-01-01 10:19:35 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-01-01 11:42:24 +0100 |
commit | 86dea48ddf4bd85c5e6bca3339bb35349acd6211 (patch) | |
tree | 05191fdbebcfd58250c452009e2f7782389f93da /src/shared/bus-wait-for-units.c | |
parent | bus-wait-for-units: rephrase error message (diff) | |
download | systemd-86dea48ddf4bd85c5e6bca3339bb35349acd6211.tar.xz systemd-86dea48ddf4bd85c5e6bca3339bb35349acd6211.zip |
bus-wait-for-units: correctly report state if disconnected from bus
Diffstat (limited to 'src/shared/bus-wait-for-units.c')
-rw-r--r-- | src/shared/bus-wait-for-units.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-wait-for-units.c b/src/shared/bus-wait-for-units.c index d73fff3dc1..49963ffe34 100644 --- a/src/shared/bus-wait-for-units.c +++ b/src/shared/bus-wait-for-units.c @@ -114,7 +114,7 @@ static int match_disconnected(sd_bus_message *m, void *userdata, sd_bus_error *e bus_wait_for_units_clear(d); if (d->ready_callback) - d->ready_callback(d, false, d->userdata); + d->ready_callback(d, BUS_WAIT_FAILURE, d->userdata); else /* If no ready callback is specified close the connection so that the event loop exits */ sd_bus_close(sd_bus_message_get_bus(m)); |