提交 be7d0a08 编写于 作者: D ding.lid

避免收到通知后,通知所有的服务

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@1624 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 2f685ed8
......@@ -383,8 +383,15 @@ public abstract class AbstractRegistry implements Registry {
}
protected void notify(List<URL> urls) {
if(urls == null || urls.isEmpty()) return;
for (Map.Entry<URL, Set<NotifyListener>> entry : getSubscribed().entrySet()) {
URL url = entry.getKey();
if(! UrlUtils.isMatch(url, urls.get(0))) {
continue;
}
Set<NotifyListener> listeners = entry.getValue();
if (listeners != null) {
for (NotifyListener listener : listeners) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册