Merge pull request #593 from steevel/unstable

Check that we have connection before enabling pipe mode
This commit is contained in:
Salvatore Sanfilippo 2012-07-21 11:12:35 -07:00
commit cddf5946fc

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();
}