From fe51b1aa5ededda1da4ea8c35524d9a3d09f0e7c Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 5 Nov 2018 22:55:08 -0400 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AABUG?= =?UTF-8?q?=EF=BC=9Awebsocket=E5=9C=A8=E5=8F=91=E9=80=81ping=E5=8C=85?= =?UTF-8?q?=E6=97=B6=E5=87=BA=E9=94=99=E5=B0=86=E4=B8=8D=E4=BC=9A=E9=87=8D?= =?UTF-8?q?=E8=BF=9E=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=90=8E=E7=BB=AD=E6=AF=8F?= =?UTF-8?q?ping=E4=B8=80=E6=AC=A1=E6=8A=A5=E4=B8=80=E6=AC=A1=E9=94=99?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/api/websocket/WebsocketClient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vnpy/api/websocket/WebsocketClient.py b/vnpy/api/websocket/WebsocketClient.py index 909e2ab2..c01b0a7d 100644 --- a/vnpy/api/websocket/WebsocketClient.py +++ b/vnpy/api/websocket/WebsocketClient.py @@ -191,6 +191,7 @@ class WebsocketClient(object): et, ev, tb = sys.exc_info() # todo: just log this, notifying user is not necessary self.onError(et, ev, tb) + self._reconnect() for i in range(60): if not self._active: break