1
0
Fork 0

sao: hotfix

This commit is contained in:
Hay1tsme 2023-11-14 22:11:24 -05:00
parent e0aeb2ac21
commit 328f64ad8a
1 changed files with 7 additions and 0 deletions

View File

@ -123,9 +123,16 @@ class SaoServlet(BaseServlet):
if resp is None:
resp = SaoNoopResponse(req_header.cmd + 1).make()
if type(resp) == bytes:
pass
elif issubclass(resp, SaoBaseResponse):
resp = resp.make()
else:
self.logger.error(f"Unknown response type {type(resp)}")
return b""
self.logger.debug(f"Response: {resp.hex()}")
if self.game_cfg.crypt.enable: