Merge pull request #533 from 38elements/patch-1

Fix bail_out()
This commit is contained in:
Raphael Deem 2017-03-10 00:35:54 -08:00 committed by GitHub
commit dffaaf8751

View File

@ -254,7 +254,7 @@ class HttpProtocol(asyncio.Protocol):
self.transport.close()
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(
("Transport closed @ {} and exception "
"experienced during error handling").format(