URI: 
       tfix order - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c9ffb1b4bad218798652965f993789404407da43
   DIR parent 0d68926da2e3bceea964c21dd3eaf4adfb9331b2
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue, 23 Oct 2012 07:45:56 +0200
       
       fix order
       
       Diffstat:
         M lib/interface.py                    |      15 ++++++++-------
       
       1 file changed, 8 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/lib/interface.py b/lib/interface.py
       t@@ -92,13 +92,6 @@ class Interface(threading.Thread):
                    # notification. we should find the channel(s)..
                    method = c.get('method')
                    params = c.get('params')
       -            with self.lock:
       -                for k,v in self.subscriptions.items():
       -                    if (method, params) in v:
       -                        channel = k
       -                else:
       -                    print "received unexpected notification", method, params
       -                    return
        
                    if method == 'blockchain.numblocks.subscribe':
                        result = params[0]
       t@@ -109,6 +102,14 @@ class Interface(threading.Thread):
                        result = params[1]
                        params = [addr]
        
       +            with self.lock:
       +                for k,v in self.subscriptions.items():
       +                    if (method, params) in v:
       +                        channel = k
       +                else:
       +                    print "received unexpected notification", method, params
       +                    print self.subscriptions
       +                    return
                        
                response_queue = self.responses[channel]
                response_queue.put({'method':method, 'params':params, 'result':result, 'id':msg_id})