repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c5b24e
)
Fix rebase conflict
author
Shinigami92
<chrissi92@hotmail.de>
Sun, 7 Feb 2021 12:05:04 +0000
(13:05 +0100)
committer
Shinigami92
<chrissi92@hotmail.de>
Sun, 7 Feb 2021 12:05:04 +0000
(13:05 +0100)
src/dynamic.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/dynamic.ts
b/src/dynamic.ts
index d413ee3968a96dbcfea53cb95d512646438652e3..667fa07a29780a4837c8f5a7f3af7643c8bb61e4 100644
(file)
--- a/
src/dynamic.ts
+++ b/
src/dynamic.ts
@@
-64,6
+64,10
@@
export default class DynamicThreadPool<
if (message.kill) {
worker.postMessage({ kill: 1 })
worker.terminate()
+ // clean workers from data structures
+ const workerIndex = this.workers.indexOf(worker)
+ this.workers.splice(workerIndex, 1)
+ this.tasks.delete(worker)
}
})
return worker