Commit 442c748d authored by antirez's avatar antirez
Browse files

redis-cli: Use the repetiton prefix after a reconnection.

parent 4d19e344
......@@ -696,7 +696,8 @@ static void repl() {
/* If we still cannot send the command print error.
* We'll try to reconnect the next time. */
if (cliSendCommand(argc,argv,1) != REDIS_OK)
if (cliSendCommand(argc-skipargs,argv+skipargs,repeat)
!= REDIS_OK)
cliPrintContextError();
}
elapsed = mstime()-start_time;
......
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