URI: 
       tfix callbacks when switching to another server - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 6931ffada55087c481b9d098afa5d0fa8c1794ec
   DIR parent ca220d8dbbee6a7221a95e619301fe40dca2678a
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu, 22 Jun 2017 14:47:05 +0200
       
       fix callbacks when switching to another server
       
       Diffstat:
         M lib/network.py                      |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/network.py b/lib/network.py
       t@@ -610,7 +610,10 @@ class Network(util.DaemonThread):
                            assert interface == self.interface
                            callbacks = [client_req[2]]
                        else:
       -                    callbacks = []
       +                    # fixme: will only work for subscriptions
       +                    k = self.get_index(method, params)
       +                    callbacks = self.subscriptions.get(k, [])
       +
                        # Copy the request method and params to the response
                        response['method'] = method
                        response['params'] = params