From c530a0a1b16c2f1d76758f2d756c05bb8908e2ad Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 10 Oct 2018 16:40:00 +0800 Subject: [PATCH] [Fix]Close #1153 --- vnpy/api/okex/vnokex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/api/okex/vnokex.py b/vnpy/api/okex/vnokex.py index 555df99f..7d769b31 100644 --- a/vnpy/api/okex/vnokex.py +++ b/vnpy/api/okex/vnokex.py @@ -111,7 +111,8 @@ class OkexApi(object): if not self.reconnecting: self.reconnecting = True - self.closeWebsocket() # 首先关闭之前的连接 + self.closeWebsocket() # 首先关闭之前的连接 + self.heartbeatReceived = True # 将心跳状态设为正常 self.initWebsocket() self.reconnecting = False