Ammend previous commit

This commit is contained in:
Kyle Agronick 2018-11-27 13:30:11 -05:00
parent 4d1b87ee42
commit f0c98780b2

View File

@ -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