Fix service comparison when creating component steps

A bug in service comparison would make it that a device already running
a service from a new release with network changes would never stop the
running service so remaining services would forever get stuck in
`Downloaded` state.

This fixes the comparison so the service will get killed in this case,
particularly allowing devices to recover from #1576

Change-type: patch
This commit is contained in:
Felipe Lalanne 2023-04-25 14:49:05 -04:00
parent 7b8b187c74
commit 5fdd689590

View File

@ -607,7 +607,7 @@ export class App {
service.status !== 'Stopping' &&
!_.some(
changingServices,
({ current }) => current?.serviceName !== service.serviceName,
({ current }) => current?.serviceName === service.serviceName,
)
) {
return [generateStep('kill', { current: service })];