Protects from killing a closed process
This commit is contained in:
parent
b72094d740
commit
89a676a49c
@ -99,8 +99,10 @@ WebBrowser.prototype = {
|
|||||||
this.callback = callback;
|
this.callback = callback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.process) {
|
||||||
this.process.kill('SIGTERM');
|
this.process.kill('SIGTERM');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var firefoxResourceDir = path.join(__dirname, 'resources', 'firefox');
|
var firefoxResourceDir = path.join(__dirname, 'resources', 'firefox');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user