修改zookeeper实现
git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@71 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
parent
30bdf6ae08
commit
2ba8642e56
|
|
@ -146,7 +146,7 @@ public class ZookeeperRegistry implements Registry {
|
|||
String service = toServicePath(url);
|
||||
Map<NotifyListener, NotifyWatcher> serviceWathers = wathers.remove(service);
|
||||
if (serviceWathers != null && serviceWathers.size() > 0) {
|
||||
NotifyWatcher wather = serviceWathers.get(listener);
|
||||
NotifyWatcher wather = serviceWathers.remove(listener);
|
||||
if (wather != null) {
|
||||
wather.setListener(null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue