summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-11-09 11:10:53 +0100
committerantirez <antirez@gmail.com>2015-11-09 11:12:03 +0100
commit28fb193ccdc59a6baf6738afc6525a75f07bdce7 (patch)
tree07c214862c2268189b1a1efc090eac389c0d641c
parentc5f9f199df65d8ef4d39048776dc0e8ad94289fb (diff)
downloadredis-28fb193ccdc59a6baf6738afc6525a75f07bdce7.tar.gz
Fix error reply in subscribed Pub/Sub mode.
PING is now a valid command to issue in this context.
-rw-r--r--src/redis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c
index 0dbf7f4c2..62694c14b 100644
--- a/src/redis.c
+++ b/src/redis.c
@@ -2259,7 +2259,7 @@ int processCommand(redisClient *c) {
c->cmd->proc != unsubscribeCommand &&
c->cmd->proc != psubscribeCommand &&
c->cmd->proc != punsubscribeCommand) {
- addReplyError(c,"only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context");
+ addReplyError(c,"only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context");
return REDIS_OK;
}