Skip to content

Commit

Permalink
refactor(client/progress): reduce Wait in progress queue
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed May 5, 2023
1 parent 8787638 commit 89c0668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource/interface/client/progress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ end
---@param data ProgressProps
---@return boolean?
function lib.progressBar(data)
while progress ~= nil do Wait(100) end
while progress ~= nil do Wait(0) end

if not interruptProgress(data) then
SendNUIMessage({
Expand All @@ -177,7 +177,7 @@ end
---@param data ProgressProps
---@return boolean?
function lib.progressCircle(data)
while progress ~= nil do Wait(100) end
while progress ~= nil do Wait(0) end

if not interruptProgress(data) then
SendNUIMessage({
Expand Down

0 comments on commit 89c0668

Please sign in to comment.