diff --git a/daphne/server.py b/daphne/server.py index 17b5e16..4f63fba 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -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