From 3ad19292a9f8b3db142c4024cbdd9ffc4429b6ca Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 26 Jan 2023 20:36:14 +0100 Subject: [PATCH] Wait for console start --- src/client/component/console.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index 84e52e84..3bc324fb 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -264,6 +264,11 @@ namespace console } } }); + + while (!started) + { + std::this_thread::sleep_for(10ms); + } } void pre_destroy() override