tresend subscriptions after disconnect - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit a9fb0a9d1969de499777676c1c0fab61d615788a (DIR) parent 81f24b66c4759bbe409790de61cd280dc0b6f8ff (HTM) Author: ThomasV <thomasv@gitorious> Date: Fri, 4 Oct 2013 11:13:05 +0200 resend subscriptions after disconnect Diffstat: M lib/network.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- (DIR) diff --git a/lib/network.py b/lib/network.py t@@ -196,6 +196,7 @@ class Network(threading.Thread): if i.is_connected: i.send([ ('blockchain.headers.subscribe',[])], self.on_header) if i == self.interface: + print_error('sending subscriptions to', self.interface.server) self.send_subscriptions() self.trigger_callback('connected') else: t@@ -208,6 +209,8 @@ class Network(threading.Thread): if self.interface is None and self.config.get('auto_cycle') and self.interfaces: self.interface = random.choice(self.interfaces.values()) self.config.set_key('server', self.interface.server, False) + print_error("resending subscriptions after disconnect") + self.send_subscriptions() self.trigger_callback('connected')