docker event stream can be null if it errored

This commit is contained in:
Girish Ramakrishnan
2016-07-25 11:39:32 -07:00
parent e46b1a9245
commit 338f4bcdea

View File

@@ -194,7 +194,7 @@ function stop(callback) {
assert.strictEqual(typeof callback, 'function');
clearTimeout(gRunTimeout);
gDockerEventStream.end();
if (gDockerEventStream) gDockerEventStream.end();
callback();
}