repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: unregister worker callbacks after usage
[poolifier.git]
/
src
/
worker
/
abstract-worker.ts
diff --git
a/src/worker/abstract-worker.ts
b/src/worker/abstract-worker.ts
index 311a56ad60e00684835e89ef0507d60f0c9d4432..b8e4b167602dd14306b595d0f1564b13009f636c 100644
(file)
--- a/
src/worker/abstract-worker.ts
+++ b/
src/worker/abstract-worker.ts
@@
-100,7
+100,7
@@
export abstract class AbstractWorker<
this.checkTaskFunctions(taskFunctions)
this.checkWorkerOptions(this.opts)
if (!this.isMain) {
- this.getMainWorker().on('message', this.handleReadyMessage.bind(this))
+ this.getMainWorker().on
ce
('message', this.handleReadyMessage.bind(this))
}
}