diff --git a/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java b/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java index e749054a2..9274e81d7 100644 --- a/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java +++ b/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java @@ -75,8 +75,8 @@ public class ProtocolManager synchronized (this) { if (!cpInit) { initCPProtocol(); - } - cpInit = true; + cpInit = true; + } } return cpProtocol; } @@ -85,8 +85,8 @@ public class ProtocolManager synchronized (this) { if (!apInit) { initAPProtocol(); - } - apInit = true; + apInit = true; + } } return apProtocol; }