From: Brian Turek Date: Tue, 8 Oct 2013 20:24:29 +0000 (-0400) Subject: Fixed WebSocketClient connections not closing on initial connection failure X-Git-Tag: v3.2.0b1~56^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F910%2Fhead;p=thirdparty%2Ftornado.git Fixed WebSocketClient connections not closing on initial connection failure --- diff --git a/tornado/websocket.py b/tornado/websocket.py index cd1ca7f51..95aa49896 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -796,6 +796,7 @@ class WebSocketClientConnection(simple_httpclient._HTTPConnection): def _on_close(self): self.on_message(None) self.resolver.close() + super(WebSocketClientConnection, self)._on_close() def _on_http_response(self, response): if not self.connect_future.done():