From 2746d875f73c9cfd145cbfb190b61de9619c5ae4 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Sat, 20 Sep 2014 13:52:36 +0100 Subject: [PATCH] Fix "undefined is not a function" error due to not passing a callback to `container.stop` --- src/supervisor-update.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supervisor-update.coffee b/src/supervisor-update.coffee index 708cae95..a18618ad 100644 --- a/src/supervisor-update.coffee +++ b/src/supervisor-update.coffee @@ -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 ->