Skip to content

Commit

Permalink
Fix service key params when remove service instance listener (#13272)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Oct 27, 2023
1 parent ef7217a commit 6b634b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public void doUnsubscribe(URL url, NotifyListener listener) {
appSubscriptionLock.lock();
ServiceInstancesChangedListener instancesChangedListener = serviceListeners.get(serviceNamesKey);
if (instancesChangedListener != null) {
instancesChangedListener.removeListener(protocolServiceKey, listener);
instancesChangedListener.removeListener(url.getServiceKey(), listener);
if (!instancesChangedListener.hasListeners()) {
instancesChangedListener.destroy();
serviceListeners.remove(serviceNamesKey);
Expand Down

0 comments on commit 6b634b7

Please sign in to comment.