electrum

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

commit a9fb0a9d1969de499777676c1c0fab61d615788a
parent 81f24b66c4759bbe409790de61cd280dc0b6f8ff
Author: ThomasV <thomasv@gitorious>
Date:   Fri,  4 Oct 2013 11:13:05 +0200

resend subscriptions after disconnect

Diffstat:
Mlib/network.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/network.py b/lib/network.py @@ -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: @@ -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')