Skip to content

Commit 7d298ef

Browse files
committed
fix: avoid null exception at checking worker node readiness
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
1 parent 33c2704 commit 7d298ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to
1111
### Fixed
1212

1313
- Avoid null exception at sending message to worker.
14+
- Avoid null exception at checking worker node readiness.
1415

1516
## [0.0.3] - 2023-10-17
1617

src/pools/selection-strategies/abstract-worker-choice-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export abstract class AbstractWorkerChoiceStrategy<
124124
* @returns Whether the worker node is ready or not.
125125
*/
126126
protected isWorkerNodeReady(workerNodeKey: number): boolean {
127-
return this.pool.workerNodes[workerNodeKey]?.info.ready ?? false
127+
return this.pool.workerNodes[workerNodeKey]?.info?.ready ?? false
128128
}
129129

130130
/**

0 commit comments

Comments
 (0)