From afe41d5fcf47da2c776571d07e318c8d19f9d806 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 26 Sep 2019 15:50:41 +0200 Subject: [PATCH] python: clear state with clear_session (fixes #525) --- python/src/trezorlib/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/src/trezorlib/client.py b/python/src/trezorlib/client.py index b8a3df0fe9..49b399d97d 100644 --- a/python/src/trezorlib/client.py +++ b/python/src/trezorlib/client.py @@ -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: