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()