Skip to content

Commit

Permalink
Ammend previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
agronick committed Nov 27, 2018
1 parent 4d1b87e commit f0c9878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daphne/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async def handle_reply(self, protocol, message):
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
Expand Down

0 comments on commit f0c9878

Please sign in to comment.