forked from Hay1tsme/artemis
adb: type checking fix
This commit is contained in:
parent
afef15fb00
commit
8f29c796b1
@ -82,7 +82,7 @@ class AimedbProtocol(Protocol):
|
||||
|
||||
resp = handler(decrypted, resp_code)
|
||||
|
||||
if type(resp) == ADBBaseResponse:
|
||||
if type(resp) == ADBBaseResponse or issubclass(type(resp), ADBBaseResponse):
|
||||
resp_bytes = resp.make()
|
||||
if len(resp_bytes) != resp.head.length:
|
||||
resp_bytes = self.append_padding(resp_bytes)
|
||||
|
Loading…
Reference in New Issue
Block a user