forked from Dniel97/artemis
sao: hotfix
This commit is contained in:
parent
e0aeb2ac21
commit
328f64ad8a
@ -123,9 +123,16 @@ class SaoServlet(BaseServlet):
|
|||||||
if resp is None:
|
if resp is None:
|
||||||
resp = SaoNoopResponse(req_header.cmd + 1).make()
|
resp = SaoNoopResponse(req_header.cmd + 1).make()
|
||||||
|
|
||||||
|
if type(resp) == bytes:
|
||||||
|
pass
|
||||||
|
|
||||||
elif issubclass(resp, SaoBaseResponse):
|
elif issubclass(resp, SaoBaseResponse):
|
||||||
resp = resp.make()
|
resp = resp.make()
|
||||||
|
|
||||||
|
else:
|
||||||
|
self.logger.error(f"Unknown response type {type(resp)}")
|
||||||
|
return b""
|
||||||
|
|
||||||
self.logger.debug(f"Response: {resp.hex()}")
|
self.logger.debug(f"Response: {resp.hex()}")
|
||||||
|
|
||||||
if self.game_cfg.crypt.enable:
|
if self.game_cfg.crypt.enable:
|
||||||
|
Loading…
Reference in New Issue
Block a user