1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00
This commit is contained in:
yuhuangbin 2020-09-08 22:11:16 +08:00
parent d96fb26ce4
commit 170edfa73e
2 changed files with 4 additions and 1 deletions

View File

@ -111,4 +111,7 @@ public class NacosServiceManager {
namingMaintainService = createNamingMaintainService(nacosProperties);
}
public void nacosServiceShutDown() throws NacosException {
this.namingService.shutDown();
}
}

View File

@ -109,7 +109,7 @@ public class NacosServiceRegistry implements ServiceRegistry<Registration> {
@Override
public void close() {
try {
namingService().shutDown();
nacosServiceManager.nacosServiceShutDown();
}
catch (NacosException e) {
log.error("Nacos namingService shutDown failed", e);