python/debuglink: properly use session_counter for debuglink transport

pull/919/head
matejcik 4 years ago
parent af05e0927f
commit 7a85d93d94

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

Loading…
Cancel
Save