Skip to content

Commit e932d0d

Browse files
authored
Update websocket.py
1 parent 7b9e804 commit e932d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tornado/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ def on_ws_connection_close(
14501450
self.on_connection_close()
14511451

14521452
def _on_http_response(self, response: httpclient.HTTPResponse) -> None:
1453-
if self.connect_future and not self.connect_future.done():
1453+
if not self.connect_future.done():
14541454
if response.error:
14551455
self.connect_future.set_exception(response.error)
14561456
else:

0 commit comments

Comments
 (0)