mirror of
https://github.com/django/daphne.git
synced 2025-07-27 15:39:46 +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
|
||||
"""
|
||||
# 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
|
||||
self.check_headers_type(message)
|
||||
# Let the protocol handle it
|
||||
|
|
Loading…
Reference in New Issue
Block a user