Fix error reply in subscribed Pub/Sub mode.

PING is now a valid command to issue in this context.
This commit is contained in:
antirez 2015-11-09 11:10:53 +01:00
parent cd8f19e9ca
commit 111d24f246

View File

@ -2414,7 +2414,7 @@ int processCommand(client *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 C_OK;
}