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