[Fix]Close #1153
This commit is contained in:
parent
78446b2c25
commit
c530a0a1b1
@ -111,7 +111,8 @@ class OkexApi(object):
|
|||||||
if not self.reconnecting:
|
if not self.reconnecting:
|
||||||
self.reconnecting = True
|
self.reconnecting = True
|
||||||
|
|
||||||
self.closeWebsocket() # 首先关闭之前的连接
|
self.closeWebsocket() # 首先关闭之前的连接
|
||||||
|
self.heartbeatReceived = True # 将心跳状态设为正常
|
||||||
self.initWebsocket()
|
self.initWebsocket()
|
||||||
|
|
||||||
self.reconnecting = False
|
self.reconnecting = False
|
||||||
|
Loading…
Reference in New Issue
Block a user