From 50e9b05cda86f80579a50864dd6d7c94f6f83e2d Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Wed, 26 Jul 2023 11:09:22 +0800 Subject: [PATCH] Check if delay is -1 before property for manual publish --- .../src/main/java/org/apache/dubbo/config/ServiceConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java index 660281746c3..0c2161ba0e1 100644 --- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java +++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java @@ -310,7 +310,7 @@ public void export(RegisterTypeEnum registerType) { if (shouldDelay()) { // should register if delay export doDelayExport(); - } else if ( + } else if (Integer.valueOf(-1).equals(getDelay()) && Boolean.parseBoolean(ConfigurationUtils.getProperty( getScopeModel(), CommonConstants.DUBBO_MANUAL_REGISTER_KEY, "false"))) { // should not register by default