1
0
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:
matejcik 2020-03-23 15:53:51 +01:00
parent af05e0927f
commit 7a85d93d94

View File

@ -281,9 +281,11 @@ class TrezorClientDebugLink(TrezorClient):
def open(self): def open(self):
super().open() super().open()
if self.session_counter == 1:
self.debug.open() self.debug.open()
def close(self): def close(self):
if self.session_counter == 1:
self.debug.close() self.debug.close()
super().close() super().close()