1
0

interface: do not connect inside the constructor

This commit is contained in:
thomasv
2012-10-22 12:58:57 +02:00
parent 4fbd2ea66e
commit 82531131ee
4 changed files with 16 additions and 7 deletions

View File

@@ -184,14 +184,16 @@ if __name__ == '__main__':
else:
sys.exit("Error: Unknown GUI: " + pref_gui )
gui = gui.ElectrumGui(wallet, config)
interface = Interface(config, True)
interface.register_callback('peers', gui.server_list_changed)
interface.start()
wallet.interface = interface
gui = gui.ElectrumGui(wallet, config)
interface.register_callback('peers', gui.server_list_changed)
# need to wait until interface is connected..
WalletSynchronizer(wallet, config).start()
WalletVerifier(wallet, config).start()
try:
found = config.wallet_file_exists