mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 16:00:57 +00:00
python: clear state with clear_session (fixes #525)
This commit is contained in:
parent
4338e17757
commit
afe41d5fcf
@ -291,6 +291,7 @@ class TrezorClient:
|
|||||||
def clear_session(self):
|
def clear_session(self):
|
||||||
resp = self.call_raw(messages.ClearSession())
|
resp = self.call_raw(messages.ClearSession())
|
||||||
if isinstance(resp, messages.Success):
|
if isinstance(resp, messages.Success):
|
||||||
|
self.state = None
|
||||||
self.init_device()
|
self.init_device()
|
||||||
return resp.message
|
return resp.message
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user