Skip to content

Commit

Permalink
Use close() of Pipeline/Transaction (#1732)
Browse files Browse the repository at this point in the history
This is an extension of 3ff1c6c
  • Loading branch information
sazzad16 committed Jun 3, 2018
1 parent 44d68f1 commit 42b21ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/BinaryJedis.java
Expand Up @@ -1863,11 +1863,11 @@ public void disconnect() {
public void resetState() {
if (client.isConnected()) {
if (transaction != null) {
transaction.clear();
transaction.close();
}

if (pipeline != null) {
pipeline.clear();
pipeline.close();
}

client.resetState();
Expand Down

0 comments on commit 42b21ca

Please sign in to comment.