mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 00:17:00 +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;
|
return false;
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
mResultsToCheckCond.wait_for(Lock, std::chrono::milliseconds(20));
|
|
||||||
}
|
}
|
||||||
|
mResultsToCheckCond.wait_for(Lock, std::chrono::milliseconds(10));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// event loop
|
// event loop
|
||||||
|
|||||||
Reference in New Issue
Block a user