Merge pull request from yuhuangbin/master

Enhance Nacos shutdown, NacosServiceRegistry#close()
pull/2212/head
余黄彬 committed by GitHub
commit e068a23350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,9 +112,14 @@ public class NacosServiceManager {
}
public void nacosServiceShutDown() throws NacosException {
this.namingService.shutDown();
namingService = null;
namingMaintainService = null;
if (Objects.nonNull(this.namingService)) {
this.namingService.shutDown();
this.namingService = null;
}
if (Objects.nonNull(this.namingMaintainService)) {
this.namingMaintainService.shutDown();
this.namingMaintainService = null;
}
}
@EventListener

Loading…
Cancel
Save