[Mod]修改MainEngineProxy的exit函数
This commit is contained in:
parent
d2f80c86c9
commit
9e71df1ebd
@ -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()
|
||||
|
@ -300,7 +300,6 @@ class RpcClient(RpcObject):
|
||||
self.__socketSUB.setsockopt(zmq.SUBSCRIBE, topic)
|
||||
|
||||
|
||||
|
||||
########################################################################
|
||||
class RemoteException(Exception):
|
||||
"""RPC远程异常"""
|
||||
|
@ -107,6 +107,7 @@ class MainEngineProxy(object):
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def exit(self):
|
||||
self.eventEvent.stop()
|
||||
self.eventEngine.stop()
|
||||
|
||||
if self.client:
|
||||
self.client.stop()
|
||||
|
Loading…
Reference in New Issue
Block a user