minor pipeline fix in Jedis

This commit is contained in:
Costin Leau
2013-02-08 18:07:02 +02:00
parent 76a1e01a2d
commit 75a727537f

View File

@@ -584,6 +584,10 @@ public class JedisConnection implements RedisConnection {
public void discard() {
try {
if (isPipelined()) {
pipeline.discard();
return;
}
client.discard();
} catch (Exception ex) {
throw convertJedisAccessException(ex);