Skip to content

Commit

Permalink
Merge branch 'master' into meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee authored Dec 21, 2021
2 parents f19baaa + 88ee498 commit a778d98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void open(HostAddress address, int timeout, SSLParam sslParam)
Charsets.UTF_8));
}
} catch (TException | IOException e) {
close();
throw new IOErrorException(IOErrorException.E_UNKNOWN, e.getMessage());
}
}
Expand Down Expand Up @@ -224,7 +225,7 @@ public boolean ping() {
}

public void close() {
if (transport != null) {
if (transport != null && transport.isOpen()) {
transport.close();
}
}
Expand Down

0 comments on commit a778d98

Please sign in to comment.