Browse Source

Yield from parser coroutine instead of making it a task.

This should give us a bit better sequential message processing.
pull/257/head
Rapptz 9 years ago
parent
commit
53bc9a3007
  1. 2
      discord/client.py

2
discord/client.py

@ -379,7 +379,7 @@ class Client:
else:
result = func(data)
if asyncio.iscoroutine(result):
utils.create_task(result, loop=self.loop)
yield from result
@asyncio.coroutine
def _make_websocket(self, initial=True):

Loading…
Cancel
Save