tChange scan_devices logic - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4fe01cb8d3f695b90ed854889b75ca52a3699725 DIR parent e4269f2684e028bf0c008ed4040ee5196f4c5164 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Sun, 3 Jan 2016 00:02:20 +0900 Change scan_devices logic Fixes title bar updates about watching only Diffstat: M plugins/trezor/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py t@@ -166,6 +166,8 @@ class TrezorCompatiblePlugin(BasePlugin): connected = set([c for c in self.clients if c.path in paths]) disconnected = self.clients - connected + self.clients = connected + # Inform clients and wallets they were disconnected for client in disconnected: self.print_error("device disconnected:", client) t@@ -191,7 +193,7 @@ class TrezorCompatiblePlugin(BasePlugin): except BaseException as e: self.print_error("cannot create client for", path, str(e)) else: - connected.add(client) + self.clients.add(client) self.print_error("new device:", client) # Inform reconnected wallets t@@ -200,8 +202,6 @@ class TrezorCompatiblePlugin(BasePlugin): client.wallet = wallet wallet.connected() - self.clients = connected - def clear_session(self, client): # Clearing the session forces pin re-entry self.print_error("clear session:", client)