Protects from killing a closed process

This commit is contained in:
Yury Delendik 2014-04-07 09:31:04 -05:00
parent b72094d740
commit 89a676a49c

View File

@ -99,8 +99,10 @@ WebBrowser.prototype = {
this.callback = callback;
}
if (this.process) {
this.process.kill('SIGTERM');
}
}
};
var firefoxResourceDir = path.join(__dirname, 'resources', 'firefox');