Skip to content

Commit

Permalink
Update websocket.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qcha0 authored Aug 20, 2020
1 parent 7b9e804 commit e932d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ def on_ws_connection_close(
self.on_connection_close()

def _on_http_response(self, response: httpclient.HTTPResponse) -> None:
if self.connect_future and not self.connect_future.done():
if not self.connect_future.done():
if response.error:
self.connect_future.set_exception(response.error)
else:
Expand Down

0 comments on commit e932d0d

Please sign in to comment.