From 4d805964629e98f5ad1b2eb8b837748d87eb73de Mon Sep 17 00:00:00 2001 From: chenxy123 Date: Mon, 21 Nov 2016 06:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dokcoin=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=85=B3=E9=97=AD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.okcoin/vnokcoin.py | 2 +- vn.trader/okcoinGateway/vnokcoin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vn.okcoin/vnokcoin.py b/vn.okcoin/vnokcoin.py index c5ba88bf..7aeac6f6 100644 --- a/vn.okcoin/vnokcoin.py +++ b/vn.okcoin/vnokcoin.py @@ -169,7 +169,7 @@ class OkCoinApi(object): #---------------------------------------------------------------------- def close(self): """关闭接口""" - if self.thread.isAlive: + if self.thread and self.thread.isAlive: self.ws.close() self.thread.join() diff --git a/vn.trader/okcoinGateway/vnokcoin.py b/vn.trader/okcoinGateway/vnokcoin.py index c5ba88bf..7aeac6f6 100644 --- a/vn.trader/okcoinGateway/vnokcoin.py +++ b/vn.trader/okcoinGateway/vnokcoin.py @@ -169,7 +169,7 @@ class OkCoinApi(object): #---------------------------------------------------------------------- def close(self): """关闭接口""" - if self.thread.isAlive: + if self.thread and self.thread.isAlive: self.ws.close() self.thread.join()