mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
fix spinning a single thread in lua result check thread
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user