Skip to content

Commit

Permalink
Removed sending of reconnectData
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-morfar committed May 7, 2024
1 parent a6f99da commit 5e2a372
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
11 changes: 11 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 3.12.0

## Changes

Updated for patch 10.2.7.

### Comms throttle

Voting Frame data is no longer being sent when reloading/reconnecting.


# 3.11.1

## Changes
Expand Down
19 changes: 10 additions & 9 deletions ml_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1629,15 +1629,16 @@ function RCLootCouncilML:OnReconnectReceived (sender)
-- REVIEW v2.2.6 For backwards compability we're just sending avotingFrame's lootTable
-- This is quite redundant and should be removed in the future
if db.observe or Council:Contains(requestPlayer) then -- Only send all data to councilmen
local table = addon:GetActiveModule("votingframe"):GetLootTable()
-- Remove our own voting data if any
for _, v in ipairs(table) do
v.haveVoted = false
for _, d in pairs(v.candidates) do
d.haveVoted = false
end
end
self:ScheduleTimer("Send", 5, requestPlayer, "reconnectData", table)
-- Patch 10.2.7: New comms throttles doesn't allow us to send this...
-- local table = addon:GetActiveModule("votingframe"):GetLootTable()
-- -- Remove our own voting data if any
-- for _, v in ipairs(table) do
-- v.haveVoted = false
-- for _, d in pairs(v.candidates) do
-- d.haveVoted = false
-- end
-- end
-- self:ScheduleTimer("Send", 5, requestPlayer, "reconnectData", table)
end
end
self.Log("Responded to reconnect from", sender)
Expand Down

0 comments on commit 5e2a372

Please sign in to comment.