Fix "undefined is not a function" error due to not passing a callback to container.stop

This commit is contained in:
Pagan Gazzard 2014-09-20 13:52:36 +01:00 committed by Pablo Carranza Vélez
parent 0630d8051b
commit 2746d875f7

View File

@ -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 ->