unbreak the zombiekilling

This commit is contained in:
Lauren Budorick 2016-03-31 13:27:29 -07:00 committed by Patrick Niklaus
parent c06f2a50f1
commit cbc8b64854

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;