Skip to content

Commit

Permalink
Fix the issue that the ReferenceConfigCache#destroy method does not c…
Browse files Browse the repository at this point in the history
…all proxy.$destroy() (#8065)
  • Loading branch information
BurningCN committed Jun 24, 2021
1 parent b194bb0 commit eb9917e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -175,7 +175,8 @@ public void destroy(String key, Class<?> type) {

Map<String, Object> proxiesOftype = proxies.get(type);
if (CollectionUtils.isNotEmptyMap(proxiesOftype)) {
proxiesOftype.remove(key);
Destroyable proxy = (Destroyable) proxiesOftype.remove(key);
proxy.$destroy();
if (proxiesOftype.isEmpty()) {
proxies.remove(type);
}
Expand Down

0 comments on commit eb9917e

Please sign in to comment.