Fix bail_out()
This commit is contained in:
parent
7f1e0557c9
commit
313535c599
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user