Commit cddf5946 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #593 from steevel/unstable

Check that we have connection before enabling pipe mode
parents b62bdf1c e9828cb6
...@@ -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