mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Fix "undefined is not a function" error due to not passing a callback to container.stop
This commit is contained in:
parent
0630d8051b
commit
2746d875f7
@ -57,7 +57,7 @@ startNewSupervisor = (currentSupervisor) ->
|
||||
reject(new Error('New supervisor stopped before success message'))
|
||||
.timeout(10000) # wait up to 10 seconds
|
||||
.catch (e) ->
|
||||
container.stop()
|
||||
container.stopAsync()
|
||||
console.log('Container failed to start successfully. Error: ', e)
|
||||
throw e
|
||||
.then ->
|
||||
|
Loading…
Reference in New Issue
Block a user