From b1a89125fed86b1bf73dc77becce8c5162a7d3db Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 25 Nov 2022 14:21:45 +0100 Subject: [PATCH] fix spinning a single thread in lua result check thread --- src/TLuaEngine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TLuaEngine.cpp b/src/TLuaEngine.cpp index 5d6bfcc..572d228 100644 --- a/src/TLuaEngine.cpp +++ b/src/TLuaEngine.cpp @@ -71,9 +71,8 @@ void TLuaEngine::operator()() { } return false; }); - } else { - mResultsToCheckCond.wait_for(Lock, std::chrono::milliseconds(20)); } + mResultsToCheckCond.wait_for(Lock, std::chrono::milliseconds(10)); } }); // event loop