[Fix]修复币安API关闭时的线程池关闭问题

This commit is contained in:
vn.py 2018-06-10 14:59:03 +08:00
parent 70ed2dfd66
commit c42ecb6ec8

View File

@ -85,8 +85,10 @@ class BinanceApi(object):
def close(self):
""""""
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):