From 89a676a49c49a565657e4d8fc6405f9e9e15f435 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 7 Apr 2014 09:31:04 -0500 Subject: [PATCH] Protects from killing a closed process --- test/webbrowser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/webbrowser.js b/test/webbrowser.js index 69c6333bb..24d72a757 100644 --- a/test/webbrowser.js +++ b/test/webbrowser.js @@ -99,7 +99,9 @@ WebBrowser.prototype = { this.callback = callback; } - this.process.kill('SIGTERM'); + if (this.process) { + this.process.kill('SIGTERM'); + } } };