1
0

DeviceMgr: clean-up locks a bit

This commit is contained in:
SomberNight
2020-04-01 18:31:08 +02:00
parent c0b170acb7
commit 7f1c7955dc
7 changed files with 22 additions and 19 deletions

View File

@@ -182,8 +182,7 @@ class KeepKeyPlugin(HW_PluginBase):
def get_client(self, keystore, force_pair=True) -> Optional['KeepKeyClient']:
devmgr = self.device_manager()
handler = keystore.handler
with devmgr.hid_lock:
client = devmgr.client_for_keystore(self, handler, keystore, force_pair)
client = devmgr.client_for_keystore(self, handler, keystore, force_pair)
# returns the client for a given keystore. can use xpub
if client:
client.used()