Browse Source

websockets: minor fix

283
ThomasV 9 years ago
parent
commit
ed2ab5e3c1
  1. 3
      lib/websockets.py

3
lib/websockets.py

@ -91,8 +91,9 @@ 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)
elif method == 'blockchain.address.get_balance':
addr = params[0]

Loading…
Cancel
Save