handle quit command response as it was leaving the socket in an unconsistent state

This commit is contained in:
Jonathan Leibiusky
2011-05-11 14:06:07 -03:00
parent 0885681f63
commit 22b2229ba0
3 changed files with 17 additions and 3 deletions

View File

@@ -69,9 +69,10 @@ public class Jedis extends BinaryJedis implements JedisCommands {
* Ask the server to silently close the connection.
*/
public void quit() {
public String quit() {
checkIsInMulti();
client.quit();
return client.getStatusCodeReply();
}
/**