]> zoso.dev Git - libnemo.git/commitdiff
Do not mark worker as available until it has reported from a stop command.
authorChris Duncan <chris@zoso.dev>
Tue, 3 Dec 2024 20:18:32 +0000 (12:18 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 3 Dec 2024 20:18:32 +0000 (12:18 -0800)
src/lib/pool.ts

index 49da45dae5211c9f71dd79cbddea511d6a217f5f..b6fcbb0cea164e89fe7be0aaa8476e505b2d319f 100644 (file)
@@ -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
                }
        }