提交 95096f35 编写于 作者: W william.liangf

DUBBO-375 修改redis注册中心适应新的registry契约

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@1707 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 a216c9b5
......@@ -476,10 +476,12 @@ public abstract class AbstractRegistry implements Registry {
logger.info("Destroy unregister url " + destroyRegistered);
}
for (URL url : new HashSet<URL>(getRegistered())) {
try {
unregister(url);
} catch (Throwable t) {
logger.warn("Failed to unregister url " + url + " to registry " + getUrl() + " on destroy, cause: " + t.getMessage(), t);
if (url.getParameter(Constants.DYNAMIC_KEY, true)) {
try {
unregister(url);
} catch (Throwable t) {
logger.warn("Failed to unregister url " + url + " to registry " + getUrl() + " on destroy, cause: " + t.getMessage(), t);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册