Skip to content

Commit

Permalink
Fix bail_out()
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements committed Mar 9, 2017
1 parent 7f1e055 commit 313535c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def write_error(self, exception):
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(
Expand Down

0 comments on commit 313535c

Please sign in to comment.