diff --git a/WeakAuras/RegionTypes/DynamicGroup.lua b/WeakAuras/RegionTypes/DynamicGroup.lua index fc670cb..831e194 100644 --- a/WeakAuras/RegionTypes/DynamicGroup.lua +++ b/WeakAuras/RegionTypes/DynamicGroup.lua @@ -339,10 +339,10 @@ local sorters = { Private.ActivateAuraEnvironment(data.id) local ok, result = pcall(sortFunc, a, b) Private.ActivateAuraEnvironment() - if not ok then - Private.GetErrorHandlerId(data.id, L["Custom Sort"]) - else + if ok then return result + else + Private.GetErrorHandlerId(data.id, L["Custom Sort"]) end end, sortOn end @@ -428,7 +428,7 @@ local anchorers = { return function(frames, activeRegions) Private.ActivateAuraEnvironment(data.id) - local ok, ret = pcall(anchorFunc, frames, activeRegions) + local ok = pcall(anchorFunc, frames, activeRegions) if not ok then Private.GetErrorHandlerUid(data.uid, L["Custom Anchor"]) end @@ -982,7 +982,7 @@ local growers = { end return function(newPositions, activeRegions) Private.ActivateAuraEnvironment(data.id) - local ok, ret = pcall(growFunc, newPositions, activeRegions) + local ok = pcall(growFunc, newPositions, activeRegions) Private.ActivateAuraEnvironment() if not ok then Private.GetErrorHandlerId(data.id, L["Custom Grow"]) diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua index 5247003..a6914dc 100644 --- a/WeakAuras/WeakAuras.lua +++ b/WeakAuras/WeakAuras.lua @@ -1155,6 +1155,7 @@ function Private.Login(takeNewSnapshots) Private.AddMany(toAdd, takeNewSnapshots); coroutine.yield(1000); + coroutine.yield(1000); Private.RegisterLoadEvents(); coroutine.yield(10000); Private.Resume();