Skip to content

Commit

Permalink
fix: #2125 - "script ran too long" when zoning into instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Sep 8, 2024
1 parent 17e08ef commit 38617de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v11.0.7
* #1857 - Add LibCustomGlow animations.
* #2144 - TMW now accounts for adjusted-rate cooldowns and auras (e.g. timer freezes caused by talents or boss mechanics).
* Fix: #2125 - "script ran too long" when zoning into instances.
* Fix: #2191 - Icon Shown condition ignoring Shown/Hidden checkboxes for disabled icons/groups.
* Fix: #2193 - Icon overlay and border animations starting in the wrong state.
* Fix: #2215 - Spell Charges condition not updating for countable spells without true charges.
Expand Down
1 change: 1 addition & 0 deletions Options/CHANGELOG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ TMW.CHANGELOG = [==[
## v11.0.7
* #1857 - Add LibCustomGlow animations.
* #2144 - TMW now accounts for adjusted-rate cooldowns and auras (e.g. timer freezes caused by talents or boss mechanics).
* Fix: #2125 - "script ran too long" when zoning into instances.
* Fix: #2191 - Icon Shown condition ignoring Shown/Hidden checkboxes for disabled icons/groups.
* Fix: #2193 - Icon overlay and border animations starting in the wrong state.
* Fix: #2215 - Spell Charges condition not updating for countable spells without true charges.
Expand Down
10 changes: 4 additions & 6 deletions TellMeWhen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2865,12 +2865,10 @@ end
-- TMW:Update() sets up all groups, icons, and anything else.
function TMW:Update(forceCoroutine)

-- We check arena (and I threw BGs in as well)
-- in hopes of resolving https://wow.curseforge.com/projects/tellmewhen/issues/1572 -
-- a "script ran too long" error that appears to be happening outside of combat,
-- potentially when loading into an arena map.
local _, z = IsInInstance()
local needsCoroutineUpdate = forceCoroutine or InCombatLockdown() or z == "arena" or z == "pvp"
-- We check for instances to resolve https://github.com/ascott18/TellMeWhen/issues/1592
-- and https://github.com/ascott18/TellMeWhen/issues/2125 - "script ran too long" errors
-- that appears to be happening outside of combat when loading into an instance.
local needsCoroutineUpdate = forceCoroutine or InCombatLockdown() or IsInInstance()

if needsCoroutineUpdate then
TMW:UpdateViaCoroutine()
Expand Down

0 comments on commit 38617de

Please sign in to comment.