修改zookeeper实现

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@71 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
william.liangf 2011-10-26 06:48:11 +00:00
parent 30bdf6ae08
commit 2ba8642e56
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}