websockets: minor fix
This commit is contained in:
parent
1207ad3ba4
commit
ed2ab5e3c1
|
@ -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…
Reference in New Issue