mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-20 15:41:38 +00:00
Fix potential chunking woe.
This commit is contained in:
@@ -487,8 +487,8 @@ class ConnectionState:
|
|||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def _chunk_and_dispatch(self, server, unavailable):
|
def _chunk_and_dispatch(self, server, unavailable):
|
||||||
yield from self.chunker(server)
|
|
||||||
chunks = list(self.chunks_needed(server))
|
chunks = list(self.chunks_needed(server))
|
||||||
|
yield from self.chunker(server)
|
||||||
if chunks:
|
if chunks:
|
||||||
try:
|
try:
|
||||||
yield from asyncio.wait(chunks, timeout=len(chunks), loop=self.loop)
|
yield from asyncio.wait(chunks, timeout=len(chunks), loop=self.loop)
|
||||||
|
Reference in New Issue
Block a user