From f0c98780b233a76d2accc998166ce5fb10403b9d Mon Sep 17 00:00:00 2001 From: Kyle Agronick Date: Tue, 27 Nov 2018 13:30:11 -0500 Subject: [PATCH] Ammend previous commit --- daphne/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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