[update] 改进天勤不能正常关闭
This commit is contained in:
parent
ac1c90aa42
commit
ebcb1676ea
@ -2312,9 +2312,10 @@ class TqMdApi():
|
|||||||
""""""
|
""""""
|
||||||
try:
|
try:
|
||||||
if self.api:
|
if self.api:
|
||||||
self.api.close()
|
|
||||||
self.is_connected = False
|
self.is_connected = False
|
||||||
if self.update_thread:
|
if self.update_thread:
|
||||||
self.update_thread.join()
|
self.update_thread.join()
|
||||||
|
self.api.close()
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.gateway.write_log('退出天勤行情api异常:{}'.format(str(e)),on_log=True)
|
self.gateway.write_log('退出天勤行情api异常:{}'.format(str(e)),on_log=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user