1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Check req/resp

This commit is contained in:
topilski 2019-10-02 08:09:23 -04:00
parent eba1998c1e
commit e66f768030

View file

@ -78,6 +78,9 @@ class SubscribersServiceManager(ServiceManager, IClientHandler):
self.__close_subscriber(client) self.__close_subscriber(client)
def process_response(self, client, req: Request, resp: Response): def process_response(self, client, req: Request, resp: Response):
if not req or not resp:
return
if req.method == Commands.SERVER_PING: if req.method == Commands.SERVER_PING:
self._handle_server_ping_command(client, resp) self._handle_server_ping_command(client, resp)
elif req.method == Commands.SERVER_GET_CLIENT_INFO: elif req.method == Commands.SERVER_GET_CLIENT_INFO: