commit 1f3f6b19e25f2f36177caff91d71b086806187dc
parent f0eb5e1316b69baf0989cfd971f049d72a672b1e
Author: ThomasV <thomasv@gitorious>
Date: Mon, 25 Feb 2013 22:21:07 +0100
launch verifier before synchronizer
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/electrum b/electrum
@@ -386,6 +386,8 @@ if __name__ == '__main__':
interface.register_callback('connected', lambda: sys.stderr.write("Connected to " + interface.connection_msg + "\n"))
interface.start()
wallet.interface = interface
+ verifier = WalletVerifier(interface, config)
+ wallet.set_verifier(verifier)
synchronizer = WalletSynchronizer(wallet, config)
synchronizer.start()
wallet.update()
@@ -761,6 +763,8 @@ if __name__ == '__main__':
if cmd not in offline_commands and not options.offline:
+ verifier.stop()
synchronizer.stop()
-
-
+ interface.stop()
+ time.sleep(0.1)
+ sys.exit(0)