removed deferToThread for ASGI instance constructor

This commit is contained in:
Anders Jensen 2018-07-16 18:31:44 +02:00
parent d5611bccb6
commit 49a693afd3

View File

@ -183,7 +183,7 @@ class Server(object):
assert "application_instance" not in self.connections[protocol]
# Make an instance of the application
input_queue = asyncio.Queue()
application_instance = yield deferToThread(self.application, scope=scope)
application_instance = self.application(scope=scope)
# Run it, and stash the future for later checking
if protocol not in self.connections:
return None