core/service: avoid duplicate unit_add_to_dbus_queue() call

If we're changing state anyways, service_set_state() -> unit_notify()
will take care of dbus signaling for us.
This commit is contained in:
Mike Yuan
2025-11-04 12:17:31 +01:00
parent 1b272d778a
commit 1b5a9a7d56
-6
View File
@@ -4806,8 +4806,6 @@ static void service_notify_message(
if (IN_SET(s->state, SERVICE_RUNNING, SERVICE_RELOAD_SIGNAL, SERVICE_RELOAD_NOTIFY, SERVICE_REFRESH_EXTENSIONS))
service_enter_stop_by_notify(s);
notify_dbus = true;
} else if (strv_contains(tags, "READY=1")) {
s->notify_state = NOTIFY_READY;
@@ -4842,8 +4840,6 @@ static void service_notify_message(
if (s->state == SERVICE_RELOAD_NOTIFY)
service_enter_running(s, SERVICE_SUCCESS);
notify_dbus = true;
} else if (strv_contains(tags, "RELOADING=1")) {
s->notify_state = NOTIFY_RELOADING;
@@ -4861,8 +4857,6 @@ static void service_notify_message(
if (s->state == SERVICE_RUNNING)
service_enter_reload_by_notify(s);
notify_dbus = true;
}
/* Interpret STATUS= */