mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
hww: stop keystore.thread when closing wallet
previously left running? Qt on macOS was complaining: ``` QThread: Destroyed while thread is still running Abort trap: 6 ```
This commit is contained in:
parent
2cfa3bd6c8
commit
b1d2389656
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ class HW_PluginBase(BasePlugin):
|
|||
for keystore in wallet.get_keystores():
|
||||
if isinstance(keystore, self.keystore_class):
|
||||
self.device_manager().unpair_xpub(keystore.xpub)
|
||||
if keystore.thread:
|
||||
keystore.thread.stop()
|
||||
|
||||
def scan_and_create_client_for_device(self, *, device_id: str, wizard: 'BaseWizard') -> 'HardwareClientBase':
|
||||
devmgr = self.device_manager()
|
||||
|
|
Loading…
Add table
Reference in a new issue