mirror of
https://github.com/open-goal/jak-project
synced 2026-06-02 02:00:40 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user