This commit is contained in:
vn.py 2018-10-10 16:40:00 +08:00
parent 78446b2c25
commit c530a0a1b1

View File

@ -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