Fix for GH-4, isResourceValid should check for PONG not OK

This commit is contained in:
Jonathan Leibiusky
2010-09-03 10:38:33 -03:00
parent 84bde29dac
commit 00dedc5f25

View File

@@ -51,6 +51,6 @@ public class JedisPool extends FixedResourcePool<Jedis> {
@Override
protected boolean isResourceValid(Jedis jedis) {
return jedis.ping().equals("OK");
return jedis.ping().equals("PONG");
}
}