Skip to content

Commit 32d59f7

Browse files
ralf0131zonghaishang
authored andcommitted
Improve the checking of lease id. #3684 (#3692)
It looks good.
1 parent dd5ec5c commit 32d59f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ protected void doClose() {
550550

551551
try {
552552
cancelKeepAlive = true;
553-
if (globalLeaseId > 0) {
553+
if (globalLeaseId != 0) {
554554
revokeLease(this.globalLeaseId);
555555
}
556556
} catch (Exception e) {

0 commit comments

Comments
 (0)