Merge pull request #2539 from murgatroid99/grpc-js_pick_first_null_check

grpc-js: Add null check in pick_first array access
This commit is contained in:
Michael Lumish 2023-08-08 14:35:48 -07:00 committed by GitHub
commit 99ae020131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(() => {