URI: 
       tshorter timeouts in synchronizer, so that it terminates properly - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 71d97eeecc1ff143e549d5a441df9a35f9493402
   DIR parent 58c817f81aba5da109113f26d4b6d80c492b8f4d
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue, 29 Jul 2014 12:23:42 +0200
       
       shorter timeouts in synchronizer, so that it terminates properly
       
       Diffstat:
         M lib/synchronizer.py                 |      15 ++++-----------
       
       1 file changed, 4 insertions(+), 11 deletions(-)
       ---
   DIR diff --git a/lib/synchronizer.py b/lib/synchronizer.py
       t@@ -61,7 +61,7 @@ class WalletSynchronizer(threading.Thread):
                    self.running = True
                while self.is_running():
                    while not self.network.is_connected():
       -                time.sleep(1)
       +                time.sleep(0.1)
                    self.run_interface()
        
            def run_interface(self):
       t@@ -123,24 +123,17 @@ class WalletSynchronizer(threading.Thread):
        
                    # 2. get a response
                    try:
       -                r = self.queue.get(block=True, timeout=1)
       +                r = self.queue.get(timeout=0.1)
                    except Queue.Empty:
                        continue
        
       -            # see if it changed
       -            #if interface != self.network.interface:
       -            #    break
       -            
       -            if not r:
       -                continue
       -
       -            # 3. handle response
       +            # 3. process response
                    method = r['method']
                    params = r['params']
                    result = r.get('result')
                    error = r.get('error')
                    if error:
       -                print "error", r
       +                print_error("error", r)
                        continue
        
                    if method == 'blockchain.address.subscribe':