From 30f89a3652d2858ebb2f98df2e6ba825fe4c4489 Mon Sep 17 00:00:00 2001 From: Rocky28447 <26193486+Rocky28447@users.noreply.github.com> Date: Sun, 11 Nov 2018 19:31:56 -0500 Subject: [PATCH] Fixed Aero side of infinite yield bug 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. --- .../Aero/Services/DataService.modulescript.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ServerStorage/Aero/Services/DataService.modulescript.lua b/src/ServerStorage/Aero/Services/DataService.modulescript.lua index 2d0a6bf..7fedbc9 100644 --- a/src/ServerStorage/Aero/Services/DataService.modulescript.lua +++ b/src/ServerStorage/Aero/Services/DataService.modulescript.lua @@ -240,7 +240,7 @@ function DataService:FlushAllConcurrent() end) end globalCache:FlushAll() - coroutine.yield() + if (numCaches > 0) then coroutine.yield() end end @@ -282,7 +282,7 @@ function DataService:Start() end end)() end - coroutine.yield() + if (numBinded > 0) then coroutine.yield() end end -- Flush cache: @@ -330,4 +330,4 @@ function DataService:Init() end -return DataService \ No newline at end of file +return DataService