From 5827b3e01d2c95746bcc699ab3ce5f844e1100a4 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Fri, 28 Aug 2020 11:49:03 -0700 Subject: [PATCH] Reset saved LRS settings when the LRS stream ends --- packages/grpc-js/src/xds-client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grpc-js/src/xds-client.ts b/packages/grpc-js/src/xds-client.ts index 39c01646..0b1fa7b9 100644 --- a/packages/grpc-js/src/xds-client.ts +++ b/packages/grpc-js/src/xds-client.ts @@ -1039,6 +1039,7 @@ export class XdsClient { 'LRS stream ended. code=' + error.code + ' details= ' + error.details ); this.lrsCall = null; + this.latestLrsSettings = null; clearInterval(this.statsTimer); /* If the backoff timer is no longer running, we do not need to wait any * more to start the new call. */