From 111d24f2465a41ddc100a11549dab3f0cd5ddc1b Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 9 Nov 2015 11:10:53 +0100 Subject: [PATCH] Fix error reply in subscribed Pub/Sub mode. PING is now a valid command to issue in this context. --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index ccd7cf5c..dbfd2785 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; }