Browse Source

bugfix: poke to reconnect

283
ThomasV 13 years ago
parent
commit
634bff6f8a
  1. 4
      lib/interface.py
  2. 2
      lib/version.py
  3. 1
      lib/wallet.py

4
lib/interface.py

@ -218,9 +218,10 @@ class TcpStratumInterface(Interface):
self.s.connect(( self.host, self.port))
self.is_connected = True
self.send([('server.version', [ELECTRUM_VERSION])])
print "Connected to %s:%d"%(self.host,self.port)
except:
self.is_connected = False
print "not connected"
print "Not connected"
def run(self):
try:
@ -380,7 +381,6 @@ class WalletSynchronizer(threading.Thread):
response = self.interface.responses.get()
self.handle_response(response)
print "disconnected, gui callback"
self.wallet.gui_callback()
if self.loop:
time.sleep(5)

2
lib/version.py

@ -1,2 +1,2 @@
ELECTRUM_VERSION = "0.48a"
ELECTRUM_VERSION = "0.48b"
SEED_VERSION = 4 # bump this everytime the seed generation is modified

1
lib/wallet.py

@ -308,6 +308,7 @@ class Wallet:
self.server = server
self.save()
self.interface.is_connected = False # this exits the polling loop
self.interface.poke()
def set_path(self, wallet_path):

Loading…
Cancel
Save