Seems to work normal for me.
You can simply test it with a blank addon and disable ALL other addons and libraries:
Lua Code:
local updaterNameUnique = "FyrMiniMapPOIPinsD"
local unregisterAfterCalls = 0
local function FyrMM_POIPins()
d("EVENT_MANAGER:RegisterForUpdate called: FyrMM_POIPins")
unregisterAfterCalls = unregisterAfterCalls + 1
if unregisterAfterCalls == 20 then
EVENT_MANAGER:UnregisterForUpdate(updaterNameUnique)
end
end
EVENT_MANAGER:UnregisterForUpdate(updaterNameUnique)
EVENT_MANAGER:RegisterForUpdate(updaterNameUnique, 300, FyrMM_POIPins)