Commit 28fb193c authored by antirez's avatar antirez
Browse files

Fix error reply in subscribed Pub/Sub mode.

PING is now a valid command to issue in this context.
parent c5f9f199
...@@ -2259,7 +2259,7 @@ int processCommand(redisClient *c) { ...@@ -2259,7 +2259,7 @@ int processCommand(redisClient *c) {
c->cmd->proc != unsubscribeCommand && c->cmd->proc != unsubscribeCommand &&
c->cmd->proc != psubscribeCommand && c->cmd->proc != psubscribeCommand &&
c->cmd->proc != punsubscribeCommand) { 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; return REDIS_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment