mirror of
https://github.com/koush/scrypted.git
synced 2026-03-04 18:33:18 +00:00
server: try staged cleanup
This commit is contained in:
@@ -44,7 +44,8 @@ export abstract class ChildProcessWorker extends EventEmitter implements Runtime
|
||||
kill(): void {
|
||||
if (!this.worker)
|
||||
return;
|
||||
this.worker.kill('SIGKILL');
|
||||
this.worker.kill();
|
||||
setTimeout(() => this.worker.kill('SIGKILL'), 1000);
|
||||
this.worker = undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user