Skip to content

Commit

Permalink
Exit cleanly when no command was given, e.g. with Ctrl-d
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasak authored and pkriens committed Feb 13, 2025
1 parent 9b81ca7 commit 768f015
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private void evaluator(CompModule world, A4Solution sol) throws Exception {
stdout.flush();
Evaluator e = new Evaluator(world, sol, stdin, stdout);
String lastCommand = e.loop();
if (lastCommand.equals("/exit"))
if (lastCommand == null || lastCommand.equals("/exit"))
return;
}
}
Expand Down

0 comments on commit 768f015

Please sign in to comment.