From: Chris Duncan Date: Tue, 3 Dec 2024 20:18:32 +0000 (-0800) Subject: Do not mark worker as available until it has reported from a stop command. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=0858788d780e361ae25b59a922943598629d05b3;p=libnemo.git Do not mark worker as available until it has reported from a stop command. --- diff --git a/src/lib/pool.ts b/src/lib/pool.ts index 49da45d..b6fcbb0 100644 --- a/src/lib/pool.ts +++ b/src/lib/pool.ts @@ -75,7 +75,6 @@ export class Pool { const msg = ['stop'] const buf = new TextEncoder().encode(JSON.stringify(msg)).buffer thread.worker.postMessage(buf, [buf]) - thread.isBusy = false } }