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

This commit is contained in:
antirez 2015-11-17 13:15:48 +01:00
parent 58573f1dd2
commit 6604e04260

View File

@ -1107,7 +1107,9 @@ static void repl(void) {
{
exit(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. */
} else {
printf("Use 'restart' only in Lua debugging mode.");