Skip to content

Commit

Permalink
Improve the checking of lease id. #3684 (#3692)
Browse files Browse the repository at this point in the history
It looks good.
  • Loading branch information
ralf0131 authored and zonghaishang committed Mar 19, 2019
1 parent dd5ec5c commit 32d59f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ protected void doClose() {

try {
cancelKeepAlive = true;
if (globalLeaseId > 0) {
if (globalLeaseId != 0) {
revokeLease(this.globalLeaseId);
}
} catch (Exception e) {
Expand Down

0 comments on commit 32d59f7

Please sign in to comment.