mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-05 19:37:25 +00:00
Fix potential chunking woe.
This commit is contained in:
parent
d409196d3d
commit
f06024f236
@ -487,8 +487,8 @@ class ConnectionState:
|
||||
|
||||
@asyncio.coroutine
|
||||
def _chunk_and_dispatch(self, server, unavailable):
|
||||
yield from self.chunker(server)
|
||||
chunks = list(self.chunks_needed(server))
|
||||
yield from self.chunker(server)
|
||||
if chunks:
|
||||
try:
|
||||
yield from asyncio.wait(chunks, timeout=len(chunks), loop=self.loop)
|
||||
|
Loading…
x
Reference in New Issue
Block a user