Skip to content

Commit

Permalink
fix(client/zones): race condition when setting debug function
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jul 25, 2023
1 parent 7c0ee46 commit fe0f289
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion imports/zones/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,11 @@ lib.zones = {
data.setDebug = setDebug

if data.debug then
data:setDebug(true, data.debugColour)
data.debug = nil

CreateThread(function()
data:setDebug(true, data.debugColour)
end)
end

Zones[data.id] = data
Expand Down

0 comments on commit fe0f289

Please sign in to comment.