mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
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:
parent
7b8b187c74
commit
5fdd689590
@ -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 })];
|
||||
|
Loading…
x
Reference in New Issue
Block a user