aboutsummaryrefslogtreecommitdiff
path: root/discord/integrations.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-04-11 18:37:00 -0400
committerRapptz <[email protected]>2020-07-25 09:59:39 -0400
commitf658fcf16457638d3d6fe9636eb61f587d7681ac (patch)
tree4ce143286443a507ccea5a108b908193490bcd11 /discord/integrations.py
parentAdd before_identify_hook to have finer control over IDENTIFY syncing (diff)
downloaddiscord.py-f658fcf16457638d3d6fe9636eb61f587d7681ac.tar.xz
discord.py-f658fcf16457638d3d6fe9636eb61f587d7681ac.zip
Make every shard maintain its own reconnect loop
Previously if a disconnect happened the client would get in a bad state and certain shards would be double sending due to unhandled exceptions raising back to Client.connect and causing all shards to be reconnected again. This new code overrides Client.connect to have more finer control and allow each individual shard to maintain its own reconnect loop and then serially request reconnection to ensure that IDENTIFYs are not overlapping.
Diffstat (limited to 'discord/integrations.py')
0 files changed, 0 insertions, 0 deletions