From e10ca9789115ba64efa488331b3f31ab4e35a341 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Fri, 24 Feb 2023 18:04:10 -0500 Subject: [PATCH] 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`. --- goalc/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/goalc/main.cpp b/goalc/main.cpp index 204d7f9634..77e63e35e4 100644 --- a/goalc/main.cpp +++ b/goalc/main.cpp @@ -162,7 +162,6 @@ int main(int argc, char** argv) { game_version, username, std::make_unique(username, repl_config, startup_file)); status = ReplStatus::OK; - repl_startup_func(); } // process user input std::string input_from_stdin = compiler->get_repl_input();