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:
Eric Anderson 2025-06-07 07:23:09 -07:00
parent 1fd29bc804
commit 4ee662fbcf
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ final class XdsDependencyManager implements XdsConfig.XdsClusterSubscriptionRegi
}
public void close() {
cancelled = true;
xdsClient.cancelXdsResourceWatch(type, resourceName, this);
}