summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-11-09 11:10:53 +0100
committerantirez <antirez@gmail.com>2015-11-09 11:10:53 +0100
commit111d24f2465a41ddc100a11549dab3f0cd5ddc1b (patch)
tree3ee56f55adf577a73aa01ff183a989dd7eaf4de7
parentcd8f19e9ca1f1e2e2a1015fa1c87979448685ddd (diff)
downloadredis-111d24f2465a41ddc100a11549dab3f0cd5ddc1b.tar.gz
Fix error reply in subscribed Pub/Sub mode.
PING is now a valid command to issue in this context.
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index ccd7cf5cd..dbfd2785a 100644
--- a/src/server.c
+++ b/src/server.c
@@ -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;
}