Skip to content

Commit

Permalink
bugfix: clear the listener map of zk registry (#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
ls9527 committed Nov 25, 2020
1 parent 23a407e commit 19eb9aa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ private void recover() throws Exception {
// recover client
if (!LISTENER_SERVICE_MAP.isEmpty()) {
Map<String, List<IZkChildListener>> listenerMap = new HashMap<>(LISTENER_SERVICE_MAP);
LISTENER_SERVICE_MAP.clear();
for (Map.Entry<String, List<IZkChildListener>> listenerEntry : listenerMap.entrySet()) {
List<IZkChildListener> iZkChildListeners = listenerEntry.getValue();
if (CollectionUtils.isEmpty(iZkChildListeners)) {
Expand Down

0 comments on commit 19eb9aa

Please sign in to comment.