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 2023/11/01 12:04:37 UTC
(dubbo) branch 3.2 updated: Judging qos is in started state when stopping qos (#13271)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new 1a6dbbe2ca Judging qos is in started state when stopping qos (#13271)
1a6dbbe2ca is described below
commit 1a6dbbe2ca3ddf3aa156016f2f734c10eb281f00
Author: TomlongTK <lo...@maoyan.com>
AuthorDate: Wed Nov 1 20:04:31 2023 +0800
Judging qos is in started state when stopping qos (#13271)
---
.../main/java/org/apache/dubbo/qos/protocol/QosProtocolWrapper.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/protocol/QosProtocolWrapper.java b/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/protocol/QosProtocolWrapper.java
index 2a6dfeff60..a39e555706 100644
--- a/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/protocol/QosProtocolWrapper.java
+++ b/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/protocol/QosProtocolWrapper.java
@@ -153,7 +153,9 @@ public class QosProtocolWrapper implements Protocol, ScopeModelAware {
/*package*/ void stopServer() {
if (hasStarted.compareAndSet(true, false)) {
Server server = frameworkModel.getBeanFactory().getBean(Server.class);
- server.stop();
+ if (server.isStarted()) {
+ server.stop();
+ }
}
}
}