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(); }