Http: Add config value to turn it off, move all http settings into a category in the config

This commit is contained in:
Lion Kortlepel
2021-12-06 09:53:13 +01:00
parent bd41382233
commit 62cc1e9ce4
5 changed files with 46 additions and 41 deletions

View File

@@ -159,6 +159,7 @@ void TLuaEngine::WaitForAll(std::vector<std::shared_ptr<TLuaResult>>& Results, c
}
if (Cancelled) {
beammp_lua_warn("'" + Result->Function + "' in '" + Result->StateId + "' failed to execute in time and was not waited for. It may still finish executing at a later time.");
LuaAPI::MP::Engine->ReportErrors({ Result });
} else if (Result->Error) {
if (Result->ErrorMessage != BeamMPFnNotFoundError) {
beammp_lua_error(Result->Function + ": " + Result->ErrorMessage);