Commit 80dac1c
committed
xds/xdsdepmgr: drop watcher and xdsClient references on Close
Per easwars' review: nil out m.watcher and m.xdsClient at the end of
DependencyManager.Close so the manager doesn't retain the resolver
(ConfigWatcher) or the xDS client after shutdown. Every callback that
touches those fields already re-checks m.stopped under m.mu, so the
nil assignments are safe once m.stopped is set.1 parent efecd06 commit 80dac1c
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
0 commit comments