mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +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) {
|
if (Waited > 250) {
|
||||||
// FIXME: This should *eventually* timeout.
|
// FIXME: This should *eventually* timeout.
|
||||||
// beammp_lua_error(Res->Function + " in " + Res->StateId + " took >1s to respond, not printing possible errors");
|
// 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);
|
mResultsToCheck.push(Res);
|
||||||
|
Lock.unlock();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user