electrum

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

commit d96561bc9d387ee2a194f2a1da21e41d67ec7831
parent 1a8de2b02ad978c0e394d09a9a1f3ed71af53f94
Author: ThomasV <thomasv@electrum.org>
Date:   Thu,  2 Nov 2017 09:40:11 +0100

fix #3175

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

diff --git a/lib/websockets.py b/lib/websockets.py @@ -62,7 +62,7 @@ class WsClientThread(util.DaemonThread): util.DaemonThread.__init__(self) self.network = network self.config = config - self.response_queue = Queue.Queue() + self.response_queue = queue.Queue() self.subscriptions = defaultdict(list) def make_request(self, request_id): @@ -80,7 +80,7 @@ class WsClientThread(util.DaemonThread): while self.is_running(): try: ws, request_id = request_queue.get() - except Queue.Empty: + except queue.Empty: continue try: addr, amount = self.make_request(request_id) @@ -97,7 +97,7 @@ class WsClientThread(util.DaemonThread): while self.is_running(): try: r = self.response_queue.get(timeout=0.1) - except Queue.Empty: + except queue.Empty: continue util.print_error('response', r) method = r.get('method')