aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-04-12 18:18:03 -0400
committerRapptz <[email protected]>2016-04-12 18:18:03 -0400
commit53bc9a300717c670fa5b18782f0f46d628d53fa7 (patch)
tree1cad036ed1810f7a53bfde2ec7d1fc3f4e45f4c2
parentAdd Channel.overwrites_for function to get allow/deny pairs. (diff)
downloaddiscord.py-53bc9a300717c670fa5b18782f0f46d628d53fa7.tar.xz
discord.py-53bc9a300717c670fa5b18782f0f46d628d53fa7.zip
Yield from parser coroutine instead of making it a task.
This should give us a bit better sequential message processing.
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 9f5d5ef4..fa85f305 100644
--- a/discord/client.py
+++ b/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):