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