Cannot read property pid of undefined during tests fix

pull/40/head
Piero Toffanin 2018-06-25 13:26:17 -04:00
rodzic a479b5de19
commit bcdbc51f48
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -195,8 +195,10 @@ module.exports = class Task{
// TODO: this does NOT guarantee that
// the process will immediately terminate.
// 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.
kill(proc.pid);
// This might need to be fixed on ODM's end.
// During testing, proc is undefined
if (proc) kill(proc.pid);
});
this.runningProcesses = [];
}