Commit 6604e042 authored by antirez's avatar antirez
Browse files

Lua debugger: redis-cli: allow restart after end of session.

parent 58573f1d
...@@ -1107,7 +1107,9 @@ static void repl(void) { ...@@ -1107,7 +1107,9 @@ static void repl(void) {
{ {
exit(0); exit(0);
} else if (strcasecmp(argv[0],"restart") == 0) { } else if (strcasecmp(argv[0],"restart") == 0) {
if (config.eval_ldb) { if (config.eval) {
config.eval_ldb = 1;
config.output = OUTPUT_RAW;
return; /* Return to evalMode to restart the session. */ return; /* Return to evalMode to restart the session. */
} else { } else {
printf("Use 'restart' only in Lua debugging mode."); printf("Use 'restart' only in Lua debugging mode.");
......
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