From 0aceb01e98d7467dd1fc42f13598579bbc86dfdd Mon Sep 17 00:00:00 2001 From: Jiangtao Date: Thu, 8 Mar 2018 00:07:40 +0800 Subject: [PATCH] fix ISSUE 750 --- vnpy/trader/app/rpcService/rsClient.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/app/rpcService/rsClient.py b/vnpy/trader/app/rpcService/rsClient.py index b4b78ed0..d674c76c 100644 --- a/vnpy/trader/app/rpcService/rsClient.py +++ b/vnpy/trader/app/rpcService/rsClient.py @@ -104,4 +104,9 @@ class MainEngineProxy(object): def getApp(self, name): """获取应用引擎对象""" return self.__getattr__(name) - \ No newline at end of file + + #---------------------------------------------------------------------- + def exit(self): + self.eventEvent.stop() + if self.client: + self.client.stop()