electrum

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

commit 380bccacf0f2e74e8449751241cd2d0821e71271
parent 963ec4ca3e511902f7b358ee001c281931b42306
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 31 Jul 2015 20:11:12 +0200

request_queue.put should never block, because maxsize is not set

Diffstat:
Mlib/interface.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -229,9 +229,9 @@ class TcpInterface(threading.Thread): return s def send_request(self, request, response_queue = None): - '''Queue a request. Blocking only if called from other threads.''' + '''Queue a request.''' self.request_time = time.time() - self.request_queue.put((copy.deepcopy(request), response_queue), threading.current_thread() != self) + self.request_queue.put((copy.deepcopy(request), response_queue)) def send_requests(self): '''Sends all queued requests'''