You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/09/27 11:10:43 UTC

[dubbo] branch master updated: fix #8339, remove duplicate validation (#8903)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 881fd1f  fix #8339, remove duplicate validation (#8903)
881fd1f is described below

commit 881fd1f2d46379ea16ad59094028e0ea431c42bc
Author: Wang Chengming <63...@qq.com>
AuthorDate: Mon Sep 27 19:10:32 2021 +0800

    fix #8339, remove duplicate validation (#8903)
---
 .../dubbo/registry/client/EventPublishingServiceDiscovery.java     | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java
index 1bd3e94..e45b7ae 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/EventPublishingServiceDiscovery.java
@@ -260,13 +260,6 @@ final class EventPublishingServiceDiscovery implements ServiceDiscovery {
 
         assertDestroyed(DESTROY_ACTION);
 
-        if (isDestroyed()) {
-            if (logger.isWarnEnabled()) {
-                logger.warn("It's ignored to stop current ServiceDiscovery, because it has been stopped.");
-            }
-            return;
-        }
-
         executeWithEvents(
                 of(new ServiceDiscoveryDestroyingEvent(this, serviceDiscovery)),
                 serviceDiscovery::destroy,