From: Mike Yuan Date: Mon, 1 Jan 2024 09:19:35 +0000 (+0800) Subject: bus-wait-for-units: correctly report state if disconnected from bus X-Git-Tag: v256-rc1~1357^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86dea48ddf4bd85c5e6bca3339bb35349acd6211;p=thirdparty%2Fsystemd.git bus-wait-for-units: correctly report state if disconnected from bus --- diff --git a/src/shared/bus-wait-for-units.c b/src/shared/bus-wait-for-units.c index d73fff3dc1f..49963ffe341 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));