Yield from parser coroutine instead of making it a task.

This should give us a bit better sequential message processing.
This commit is contained in:
Rapptz 2016-04-12 18:18:03 -04:00
parent 03041bdb0a
commit 53bc9a3007

View File

@ -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):