repl: prevent REPL crash when running (reload) (#2243)

Stops the REPL crashing with `device or resource busy` when running
`(reload)`

However I think this is indicative of a bigger problem where either the
`Compiler` or prompt is not ready to handle input immediately after
creation and setting the status to `OK`.
This commit is contained in:
Tyler Wilding
2023-02-24 18:04:10 -05:00
committed by GitHub
parent e89f0770dc
commit e10ca97891
-1
View File
@@ -162,7 +162,6 @@ int main(int argc, char** argv) {
game_version, username,
std::make_unique<REPL::Wrapper>(username, repl_config, startup_file));
status = ReplStatus::OK;
repl_startup_func();
}
// process user input
std::string input_from_stdin = compiler->get_repl_input();