mirror of https://github.com/grpc/grpc-node.git
Only start the timer if the ADS stream is running
This commit is contained in:
parent
a041056e71
commit
65075e50a7
|
@ -113,7 +113,9 @@ export abstract class BaseXdsStreamState<ResponseType> implements XdsStreamState
|
|||
cachedResponse: null,
|
||||
resourceTimer: setTimeout(() => {}, 0)
|
||||
};
|
||||
this.startResourceTimer(subscriptionEntry);
|
||||
if (this.isAdsStreamRunning) {
|
||||
this.startResourceTimer(subscriptionEntry);
|
||||
}
|
||||
this.subscriptions.set(name, subscriptionEntry);
|
||||
}
|
||||
subscriptionEntry.watchers.push(watcher);
|
||||
|
|
Loading…
Reference in New Issue