🐛 destory xds exchanger null (#13086)

This commit is contained in:
songxiaosheng 2023-09-26 20:32:54 +08:00 committed by GitHub
parent 4146082453
commit 26174f0548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ public class XdsServiceDiscovery extends ReflectionBasedServiceDiscovery {
@Override
public void doDestroy() {
try {
if (exchanger == null) {
return;
}
exchanger.destroy();
} catch (Throwable t) {
logger.error(REGISTRY_ERROR_INITIALIZE_XDS, "", "", t.getMessage(), t);