diff --git a/server/src/plugin/runtime/child-process-worker.ts b/server/src/plugin/runtime/child-process-worker.ts index f7cf131da..90233aa71 100644 --- a/server/src/plugin/runtime/child-process-worker.ts +++ b/server/src/plugin/runtime/child-process-worker.ts @@ -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; }