mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
Another possible fix for deadlock
This commit is contained in:
parent
98c7fea139
commit
eb67f483b2
@ -64,8 +64,9 @@ void TLuaEngine::operator()() {
|
||||
if (Waited > 250) {
|
||||
// FIXME: This should *eventually* timeout.
|
||||
// beammp_lua_error(Res->Function + " in " + Res->StateId + " took >1s to respond, not printing possible errors");
|
||||
std::unique_lock Lock(mResultsToCheckMutex);
|
||||
Lock.lock();
|
||||
mResultsToCheck.push(Res);
|
||||
Lock.unlock();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user