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