View Single Post
07/19/22, 02:41 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Seems to work normal for me.



You can simply test it with a blank addon and disable ALL other addons and libraries:

Lua Code:
  1. local updaterNameUnique = "FyrMiniMapPOIPinsD"
  2.     local unregisterAfterCalls = 0
  3.     local function FyrMM_POIPins()
  4.        d("EVENT_MANAGER:RegisterForUpdate called: FyrMM_POIPins")
  5.         unregisterAfterCalls = unregisterAfterCalls + 1
  6.         if unregisterAfterCalls == 20 then
  7.             EVENT_MANAGER:UnregisterForUpdate(updaterNameUnique)
  8.         end
  9.     end
  10.     EVENT_MANAGER:UnregisterForUpdate(updaterNameUnique)
  11.     EVENT_MANAGER:RegisterForUpdate(updaterNameUnique, 300,  FyrMM_POIPins)

Last edited by Baertram : 07/19/22 at 02:47 AM.
  Reply With Quote