repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: fix worker task functions handling
[poolifier.git]
/
src
/
pools
/
cluster
/
fixed.ts
diff --git
a/src/pools/cluster/fixed.ts
b/src/pools/cluster/fixed.ts
index fe920f8a48126529a31dafc2d0c9f31bb4c0e4cf..6e9b4b07113bac62000a84ae0a2d8aa05b333532 100644
(file)
--- a/
src/pools/cluster/fixed.ts
+++ b/
src/pools/cluster/fixed.ts
@@
-61,7
+61,7
@@
export class FixedClusterPool<
/** @inheritDoc */
protected destroyWorker (worker: Worker): void {
- this.sendToWorker(worker, { kill:
1
})
+ this.sendToWorker(worker, { kill:
true, workerId: worker.id
})
worker.on('disconnect', () => {
worker.kill()
})