1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

python: clear state with clear_session (fixes #525)

This commit is contained in:
matejcik 2019-09-26 15:50:41 +02:00
parent 4338e17757
commit afe41d5fcf

View File

@ -291,6 +291,7 @@ class TrezorClient:
def clear_session(self):
resp = self.call_raw(messages.ClearSession())
if isinstance(resp, messages.Success):
self.state = None
self.init_device()
return resp.message
else: