mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
python/debuglink: properly use session_counter for debuglink transport
This commit is contained in:
parent
af05e0927f
commit
7a85d93d94
@ -281,10 +281,12 @@ class TrezorClientDebugLink(TrezorClient):
|
||||
|
||||
def open(self):
|
||||
super().open()
|
||||
self.debug.open()
|
||||
if self.session_counter == 1:
|
||||
self.debug.open()
|
||||
|
||||
def close(self):
|
||||
self.debug.close()
|
||||
if self.session_counter == 1:
|
||||
self.debug.close()
|
||||
super().close()
|
||||
|
||||
def set_filter(self, message_type, callback):
|
||||
|
Loading…
Reference in New Issue
Block a user