Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
卫龙 committed May 12, 2022
1 parent 89a208f commit fb74c42
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.dubbo.config.ApplicationConfig;
import org.apache.dubbo.config.ReferenceConfig;
import org.apache.dubbo.config.RegistryConfig;
import org.apache.dubbo.config.utils.ReferenceConfigCache;
import org.apache.dubbo.registry.Registry;
import org.apache.dubbo.rpc.service.GenericService;
import org.springframework.stereotype.Component;
Expand Down Expand Up @@ -80,7 +81,8 @@ public Object invoke(String service, String method, String[] parameterTypes, Obj
GenericService genericService = reference.get();
return genericService.$invoke(method, parameterTypes, params);
} finally {
reference.destroy();
ReferenceConfigCache cache = ReferenceConfigCache.getCache();
cache.destroy(reference);
}
}

Expand Down

0 comments on commit fb74c42

Please sign in to comment.