mirror of https://mirror.osredm.com/root/redis.git
Fix error reply in subscribed Pub/Sub mode.
PING is now a valid command to issue in this context.
This commit is contained in:
parent
cd8f19e9ca
commit
111d24f246
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue