Commit 889e443c authored by Steeve Lennmark's avatar Steeve Lennmark Committed by antirez
Browse files

Check that we have connection before enabling pipe mode

parent 3bb3f125
...@@ -1233,7 +1233,7 @@ int main(int argc, char **argv) { ...@@ -1233,7 +1233,7 @@ int main(int argc, char **argv) {
/* Pipe mode */ /* Pipe mode */
if (config.pipe_mode) { if (config.pipe_mode) {
cliConnect(0); if (cliConnect(0) == REDIS_ERR) exit(1);
pipeMode(); pipeMode();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment