mirror of https://github.com/grpc/grpc-java.git
xds: cancelled=true on watch close in XdsDepManager
1fd29bc80
replaced cancelWatcher() with watcher.close(). But setting
cancelled was missing. Because the config update checks for shutdown,
the cancelled flag no longer avoids exceptions. But it seems best to
continue avoiding any processing after close to avoid surprises.
This commit is contained in:
parent
1fd29bc804
commit
4ee662fbcf
|
@ -525,6 +525,7 @@ final class XdsDependencyManager implements XdsConfig.XdsClusterSubscriptionRegi
|
|||
}
|
||||
|
||||
public void close() {
|
||||
cancelled = true;
|
||||
xdsClient.cancelXdsResourceWatch(type, resourceName, this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue