mirror of https://github.com/grpc/grpc-node.git
grpc-js: Add null check in pick_first array access
This commit is contained in:
parent
f6dd4aad55
commit
a4ba925352
|
@ -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