hengyoush opened a new issue #8339:
URL: https://github.com/apache/dubbo/issues/8339
In the
org.apache.dubbo.registry.client.EventPublishingServiceDiscovery.destroy():
```java
public void destroy() {
assertDestroyed(DESTROY_ACTION); //
内部调用了isDestroyed方法,如果已经destroy则抛出异常
if (isDestroyed()) { // 此处再次进行判断,如果已经destroy,则打印日志
if (logger.isWarnEnabled()) {
logger.warn("It's ignored to stop current ServiceDiscovery,
because it has been stopped.");
}
return;
}
```
Can this place be optimized? If necessary, I can submit a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]