Check that we have connection before enabling pipe mode

This commit is contained in:
Steeve Lennmark
2012-07-22 17:19:05 +02:00
committed by antirez
parent 3bb3f12539
commit 889e443ce5
+1 -1
View File
@@ -1233,7 +1233,7 @@ int main(int argc, char **argv) {
/* Pipe mode */
if (config.pipe_mode) {
cliConnect(0);
if (cliConnect(0) == REDIS_ERR) exit(1);
pipeMode();
}