mirror of https://github.com/grpc/grpc-node.git
grpc-js: Switch LB policy when new one is not CONNECTING
This commit is contained in:
parent
1b1930f535
commit
5a7f89a5f5
|
@ -48,7 +48,7 @@ export class ChildLoadBalancerHandler implements LoadBalancer {
|
|||
}
|
||||
updateState(connectivityState: ConnectivityState, picker: Picker): void {
|
||||
if (this.calledByPendingChild()) {
|
||||
if (connectivityState !== ConnectivityState.READY) {
|
||||
if (connectivityState === ConnectivityState.CONNECTING) {
|
||||
return;
|
||||
}
|
||||
this.parent.currentChild?.destroy();
|
||||
|
|
Loading…
Reference in New Issue