From ffbd6ffc217d1a1679a60de34dc2ca7510897fd3 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 22 Oct 2014 10:40:40 -0500 Subject: Fix crash when rapid firing command line commands Change-Id: I0caaa51720fe3608b8c4cb02f046afb3cbaa54f9 --- gui/gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui') 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. -- cgit v1.2.3