twebsockets: minor fix - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ed2ab5e3c1375d4971cec771cb6f5872835b0274 DIR parent 1207ad3ba41ed25cbc2d91b12fb2b45a431357f0 HTML Author: ThomasV <thomasv@electrum.org> Date: Wed, 25 Nov 2015 11:37:10 +0100 websockets: minor fix Diffstat: M lib/websockets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/websockets.py b/lib/websockets.py t@@ -91,9 +91,10 @@ class WsClientThread(util.DaemonThread): method = r.get('method') params = r.get('params') result = r.get('result') + if result is None: + continue if method == 'blockchain.address.subscribe': - if result is not None: - self.network.send([('blockchain.address.get_balance', params)], self.response_queue.put) + self.network.send([('blockchain.address.get_balance', params)], self.response_queue.put) elif method == 'blockchain.address.get_balance': addr = params[0] l = self.subscriptions.get(addr, [])