[Mod]修改MainEngineProxy的exit函数

This commit is contained in:
vn.py 2018-03-08 09:35:25 +08:00
parent d2f80c86c9
commit 9e71df1ebd
3 changed files with 4 additions and 6 deletions

View File

@ -99,10 +99,8 @@ class Gateway(Resource):
"""查询"""
args = self.parser.parse_args()
token = args['token']
print token
print TOKEN
if token != TOKEN:
print 'token error'
return {'result_code':'error','message':'token error'}
l = me.getAllGatewayDetails()

View File

@ -300,7 +300,6 @@ class RpcClient(RpcObject):
self.__socketSUB.setsockopt(zmq.SUBSCRIBE, topic)
########################################################################
class RemoteException(Exception):
"""RPC远程异常"""

View File

@ -107,6 +107,7 @@ class MainEngineProxy(object):
#----------------------------------------------------------------------
def exit(self):
self.eventEvent.stop()
self.eventEngine.stop()
if self.client:
self.client.stop()