fix(core): update
This commit is contained in:
parent
0d0404d00d
commit
334a38c71e
@ -19,13 +19,13 @@ export class SmartExit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async killAll() {
|
public async killAll() {
|
||||||
console.log('Checking for remaining child processes before exit...');
|
console.log('SMARTEXIT: Checking for remaining child processes before exit...');
|
||||||
if (this.processesToEnd.getArray().length > 0) {
|
if (this.processesToEnd.getArray().length > 0) {
|
||||||
console.log('found remaining child processes');
|
console.log('found remaining child processes');
|
||||||
let counter = 1;
|
let counter = 1;
|
||||||
this.processesToEnd.forEach(async childProcessArg => {
|
this.processesToEnd.forEach(async childProcessArg => {
|
||||||
const pid = childProcessArg.pid;
|
const pid = childProcessArg.pid;
|
||||||
console.log(`killing process #${counter} with pid ${pid}`);
|
console.log(`SMARTEXIT: killing process #${counter} with pid ${pid}`);
|
||||||
plugins.smartdelay.delayFor(10000).then(() => {
|
plugins.smartdelay.delayFor(10000).then(() => {
|
||||||
if (childProcessArg.killed) {
|
if (childProcessArg.killed) {
|
||||||
return;
|
return;
|
||||||
@ -37,7 +37,7 @@ export class SmartExit {
|
|||||||
counter++;
|
counter++;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log(`Everything looks clean. Ready to exit!`);
|
console.log(`SMARTEXIT: Everything looks clean. Ready to exit!`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user