mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-05 02:29:46 +00:00
e4e895630f
During first time run of the supervisor, the target state is queried by `reportInitialEnv`. Since this happens early on the initialization process, this target state report is missed by any listeners and this can lead to the initial target state not beeing applied (see #1455). This PR ensures that target state is re-emitted if there were no listeners setup on call to update. Change-type: patch Signed-off-by: Felipe Lalanne <felipe@balena.io> Connects-to: #1455