For loop never ending on Module disabled
Created by: ApertureDevelopment
I noticed that the function for loading modules has a huge issue. If a module is disabled, it stopd the loop and hangs. I dont yet know why that happens but I have a workaround
Replace:
for k,v in pairs(MSync.modules) do
if not MSync.settings.data.enabledModules[v["info"].ModuleIdentifier] then return end;
v["init"](initTransaction)
v["net"]()
v["ulx"]()
v["hooks"]()
print("["..v["info"]["Name"].."] Module loaded")
end
With:
for k,v in pairs(MSync.modules) do
if MSync.settings.data.enabledModules[v["info"].ModuleIdentifier] then
v["init"](initTransaction)
v["net"]()
v["ulx"]()
v["hooks"]()
print("["..v["info"]["Name"].."] Module loaded")
end
end
The responsible line of code is this:
if not MSync.settings.data.enabledModules[v["info"].ModuleIdentifier] then return end;