From 7de6e0fb428f1662d7f31835cffe15c228492bf7 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 19 Sep 2019 21:55:33 +0800 Subject: [PATCH] [Mod] add wmi into requirements --- requirements.txt | 3 ++- vnpy/rpc/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 66137198..4f68c40d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,4 +18,5 @@ rqdatac ta-lib ibapi deap -pyzmq \ No newline at end of file +pyzmq +wmi \ No newline at end of file diff --git a/vnpy/rpc/__init__.py b/vnpy/rpc/__init__.py index b74e1f4e..f29bc00b 100644 --- a/vnpy/rpc/__init__.py +++ b/vnpy/rpc/__init__.py @@ -239,7 +239,7 @@ class RpcClient: def join(self): # Wait for RpcClient thread to exit - if self.__thread.isAlive(): + if self.__thread and self.__thread.is_alive(): self.__thread.join() self.__thread = None