You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ea...@apache.org on 2023/12/25 12:06:39 UTC
(dubbo) branch 3.2 updated: fix complete already (#13546)
This is an automated email from the ASF dual-hosted git repository.
earthchen 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 e26a22d163 fix complete already (#13546)
e26a22d163 is described below
commit e26a22d163f55ad809aa5c9f0fdd0a4ca0fcd03d
Author: icodening <cl...@gmail.com>
AuthorDate: Mon Dec 25 20:06:32 2023 +0800
fix complete already (#13546)
* fix complete already
* fix complete already
---
.../apache/dubbo/remoting/transport/netty4/NettyConnectionClient.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyConnectionClient.java b/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyConnectionClient.java
index 66e8c08416..3e2fd50657 100644
--- a/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyConnectionClient.java
+++ b/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyConnectionClient.java
@@ -150,7 +150,9 @@ public class NettyConnectionClient extends AbstractConnectionClient {
current.close();
}
this.channel.set(null);
- closePromise.setSuccess(null);
+ if (!closePromise.isDone()) {
+ closePromise.setSuccess(null);
+ }
}
}