mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +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'))
|
reject(new Error('New supervisor stopped before success message'))
|
||||||
.timeout(10000) # wait up to 10 seconds
|
.timeout(10000) # wait up to 10 seconds
|
||||||
.catch (e) ->
|
.catch (e) ->
|
||||||
container.stop()
|
container.stopAsync()
|
||||||
console.log('Container failed to start successfully. Error: ', e)
|
console.log('Container failed to start successfully. Error: ', e)
|
||||||
throw e
|
throw e
|
||||||
.then ->
|
.then ->
|
||||||
|
Loading…
Reference in New Issue
Block a user