Commit 37109d8a 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 d6c24ff6
...@@ -2392,7 +2392,7 @@ int processCommand(client *c) { ...@@ -2392,7 +2392,7 @@ int processCommand(client *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 C_OK; return C_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