[Fix]修复币安API关闭时的线程池关闭问题
This commit is contained in:
parent
70ed2dfd66
commit
c42ecb6ec8
@ -85,6 +85,8 @@ class BinanceApi(object):
|
|||||||
def close(self):
|
def close(self):
|
||||||
""""""
|
""""""
|
||||||
self.active = False
|
self.active = False
|
||||||
|
|
||||||
|
if self.pool:
|
||||||
self.pool.close()
|
self.pool.close()
|
||||||
self.pool.join()
|
self.pool.join()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user