mirror of https://github.com/grpc/grpc-node.git
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:
commit
99ae020131
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue