Skip to content

Commit

Permalink
Merge pull request #2539 from murgatroid99/grpc-js_pick_first_null_check
Browse files Browse the repository at this point in the history
grpc-js: Add null check in pick_first array access
  • Loading branch information
murgatroid99 committed Aug 8, 2023
2 parents f6dd4aa + a4ba925 commit 99ae020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js/src/load-balancer-pick-first.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class PickFirstLoadBalancer implements LoadBalancer {
this.children[subchannelIndex].subchannel.getAddress()
);
process.nextTick(() => {
this.children[subchannelIndex].subchannel.startConnecting();
this.children[subchannelIndex]?.subchannel.startConnecting();
});
}
this.connectionDelayTimeout = setTimeout(() => {
Expand Down

0 comments on commit 99ae020

Please sign in to comment.