unbreak the zombiekilling

This commit is contained in:
Lauren Budorick 2016-03-31 13:27:29 -07:00
parent 335be174d2
commit 23d41d584b

View File

@ -38,7 +38,7 @@ var OSRMBaseLoader = class {
}
osrmDown (callback) {
if (this.scope.pid && this.child && !this.child.exitCode) {
if (this.scope.pid) {
process.kill(this.scope.pid, this.scope.TERMSIGNAL);
this.waitForShutdown(callback);
this.scope.pid = null;