fix(client/main): Prevent multiple onTick threads from running at once after relogging

This commit is contained in:
Linden
2021-06-04 11:41:57 +10:00
committed by GitHub
parent 0cc776dfc3
commit 97289e615b
+1 -1
View File
@@ -64,7 +64,7 @@ AddEventHandler('esx_status:load', function(status)
end
Citizen.CreateThread(function()
while true do
while #Status > 0 do
for i=1, #Status, 1 do
Status[i].onTick()
end