mirror of
https://github.com/django/daphne.git
synced 2025-04-20 00:32:09 +03:00
removed deferToThread for ASGI instance constructor
This commit is contained in:
parent
d5611bccb6
commit
49a693afd3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user