Skip to content

Commit

Permalink
Surround jedis.quit() in try/catch to ignore connection problems in
Browse files Browse the repository at this point in the history
method destroyObject
  • Loading branch information
zoz committed Dec 2, 2010
1 parent 26614b2 commit ff8ac4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/redis/clients/jedis/JedisPool.java
Expand Up @@ -67,7 +67,10 @@ public void destroyObject(final Object obj) throws Exception {
final Jedis jedis = (Jedis) obj;
if (jedis.isConnected()) {
try {
jedis.quit();
try {
jedis.quit();
} catch (Exception e) {
}
jedis.disconnect();
} catch (Exception e) {

Expand All @@ -90,4 +93,4 @@ public boolean validateObject(final Object obj) {
}

}
}
}

0 comments on commit ff8ac4c

Please sign in to comment.