1
0
forked from Hay1tsme/artemis

sao: hotfix

This commit is contained in:
Hay1tsme 2023-11-14 22:11:24 -05:00
parent e0aeb2ac21
commit 328f64ad8a

View File

@ -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: