Skip to content

Commit 42b21ca

Browse files
authored
Use close() of Pipeline/Transaction (#1732)
This is an extension of redis/jedis@3ff1c6c
1 parent 44d68f1 commit 42b21ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/redis/clients/jedis/BinaryJedis.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1863,11 +1863,11 @@ public void disconnect() {
18631863
public void resetState() {
18641864
if (client.isConnected()) {
18651865
if (transaction != null) {
1866-
transaction.clear();
1866+
transaction.close();
18671867
}
18681868

18691869
if (pipeline != null) {
1870-
pipeline.clear();
1870+
pipeline.close();
18711871
}
18721872

18731873
client.resetState();

0 commit comments

Comments
 (0)