summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/gui.cpp b/gui/gui.cpp
index 80063399f..2c6418e4c 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -936,6 +936,10 @@ extern "C" int gui_console_only(void)
return -1;
gGuiConsoleTerminate = 0;
+
+ if (gGuiConsoleRunning)
+ return 0;
+
gGuiConsoleRunning = 1;
// Start by spinning off an input handler.