Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Fixed Aero side of infinite yield bug
Browse files Browse the repository at this point in the history
Will no longer infinite yield if boundToCloseFuncs is 0 and will no longer infinite yield if the number of DataCaches is 0. This fixes the Aero side of the infinite yield bug, Roblox has yet to fix the bug on their end.
  • Loading branch information
ThoughtSpinnr authored Nov 12, 2018
1 parent 65e145b commit 30f89a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ServerStorage/Aero/Services/DataService.modulescript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function DataService:FlushAllConcurrent()
end)
end
globalCache:FlushAll()
coroutine.yield()
if (numCaches > 0) then coroutine.yield() end
end


Expand Down Expand Up @@ -282,7 +282,7 @@ function DataService:Start()
end
end)()
end
coroutine.yield()
if (numBinded > 0) then coroutine.yield() end
end

-- Flush cache:
Expand Down Expand Up @@ -330,4 +330,4 @@ function DataService:Init()
end


return DataService
return DataService

0 comments on commit 30f89a3

Please sign in to comment.