Commit 111d24f2 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 cd8f19e9
...@@ -2414,7 +2414,7 @@ int processCommand(client *c) { ...@@ -2414,7 +2414,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