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'); + } } };