Browse Source

Fix case when no chunks are necessary.

pull/105/head
Rapptz 9 years ago
parent
commit
0b80575ae3
  1. 5
      discord/client.py

5
discord/client.py

@ -159,7 +159,10 @@ class Client:
def _fill_offline(self):
yield from self.request_offline_members(filter(lambda s: s.large, self.servers))
chunks = self._get_all_chunks()
yield from asyncio.wait(chunks)
if chunks:
yield from asyncio.wait(chunks)
self.dispatch('ready')
def _get_cache_filename(self, email):

Loading…
Cancel
Save