From 53bc9a300717c670fa5b18782f0f46d628d53fa7 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 12 Apr 2016 18:18:03 -0400 Subject: [PATCH] Yield from parser coroutine instead of making it a task. This should give us a bit better sequential message processing. --- discord/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 9f5d5ef4f..fa85f3057 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):