From 0858788d780e361ae25b59a922943598629d05b3 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 3 Dec 2024 12:18:32 -0800 Subject: [PATCH] Do not mark worker as available until it has reported from a stop command. --- src/lib/pool.ts | 1 - 1 file changed, 1 deletion(-) 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 } } -- 2.34.1