mirror of
https://github.com/django/daphne.git
synced 2025-07-27 23:49:45 +03:00
Ammend previous commit
This commit is contained in:
parent
4d1b87ee42
commit
f0c98780b2
|
@ -210,7 +210,7 @@ class Server(object):
|
||||||
Coroutine that jumps the reply message from asyncio to Twisted
|
Coroutine that jumps the reply message from asyncio to Twisted
|
||||||
"""
|
"""
|
||||||
# Don't do anything if the connection is closed
|
# Don't do anything if the connection is closed
|
||||||
if protocol not in self.connections or self.connections[protocol].get("disconnected"):
|
if protocol not in self.connections or not self.connections[protocol].get("disconnected"):
|
||||||
return
|
return
|
||||||
self.check_headers_type(message)
|
self.check_headers_type(message)
|
||||||
# Let the protocol handle it
|
# Let the protocol handle it
|
||||||
|
|
Loading…
Reference in New Issue
Block a user