kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Cannot read property pid of undefined during tests fix
rodzic
a479b5de19
commit
bcdbc51f48
|
@ -195,8 +195,10 @@ module.exports = class Task{
|
||||||
// TODO: this does NOT guarantee that
|
// TODO: this does NOT guarantee that
|
||||||
// the process will immediately terminate.
|
// the process will immediately terminate.
|
||||||
// For eaxmple in the case of the ODM process, the process will continue running for a while
|
// For eaxmple in the case of the ODM process, the process will continue running for a while
|
||||||
// This might need to be fixed on ODM's end.
|
// This might need to be fixed on ODM's end.
|
||||||
kill(proc.pid);
|
|
||||||
|
// During testing, proc is undefined
|
||||||
|
if (proc) kill(proc.pid);
|
||||||
});
|
});
|
||||||
this.runningProcesses = [];
|
this.runningProcesses = [];
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue