From 338f4bcdeae850d410dbdf0e89c38fe64e3e8235 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 25 Jul 2016 11:39:32 -0700 Subject: [PATCH] docker event stream can be null if it errored --- src/apphealthmonitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apphealthmonitor.js b/src/apphealthmonitor.js index f496db5b9..7a26c4b05 100644 --- a/src/apphealthmonitor.js +++ b/src/apphealthmonitor.js @@ -194,7 +194,7 @@ function stop(callback) { assert.strictEqual(typeof callback, 'function'); clearTimeout(gRunTimeout); - gDockerEventStream.end(); + if (gDockerEventStream) gDockerEventStream.end(); callback(); }