repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: workaround possible race condition at work nodes array element removal and querying
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
abstract-worker-choice-strategy.ts
diff --git
a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts
b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts
index 630a2258be49a7ed725f12b1ac555d510dd0e257..68e09238b204c35e4f6bb87392021f314e3e2923 100644
(file)
--- a/
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
+++ b/
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
@@
-123,7
+123,7
@@
export abstract class AbstractWorkerChoiceStrategy<
* @returns Whether the worker node is ready or not.
*/
private isWorkerNodeReady (workerNodeKey: number): boolean {
- return this.pool.workerNodes[workerNodeKey].info.ready
+ return this.pool.workerNodes[workerNodeKey]
?
.info.ready
}
/**