Actually last one was good.

This reverts commit f0c98780b2.
This commit is contained in:
Kyle Agronick 2018-11-27 13:40:04 -05:00
parent f0c98780b2
commit d6cc8e0e11

View File

@ -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 not self.connections[protocol].get("disconnected"):
if protocol not in self.connections or self.connections[protocol].get("disconnected"):
return
self.check_headers_type(message)
# Let the protocol handle it