Fix bail_out()

This commit is contained in:
38elements 2017-03-09 13:36:01 +09:00
parent 7f1e0557c9
commit 313535c599

View File

@ -254,7 +254,7 @@ class HttpProtocol(asyncio.Protocol):
self.transport.close() self.transport.close()
def bail_out(self, message, from_error=False): def bail_out(self, message, from_error=False):
if from_error and self.transport.is_closing(): if from_error or self.transport.is_closing():
log.error( log.error(
("Transport closed @ {} and exception " ("Transport closed @ {} and exception "
"experienced during error handling").format( "experienced during error handling").format(