electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ed2ab5e3c1375d4971cec771cb6f5872835b0274
parent 1207ad3ba41ed25cbc2d91b12fb2b45a431357f0
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 25 Nov 2015 11:37:10 +0100

websockets: minor fix

Diffstat:
Mlib/websockets.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/websockets.py b/lib/websockets.py @@ -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, [])