WalletSynchronizer had a race condition caused by calling the callback before the...
authorAmir Taaki <genjix@riseup.net>
Wed, 29 Aug 2012 19:49:31 +0000 (20:49 +0100)
committerAmir Taaki <genjix@riseup.net>
Wed, 29 Aug 2012 19:53:22 +0000 (20:53 +0100)
commitb3b910d926c3ab081aa0c5ad2a090909311c631f
tree642c50e4f359d7b118a19bb0290256788c60c33d
parente61d478a80e450067f78dfaaef54e0643b26e299
WalletSynchronizer had a race condition caused by calling the callback before the Qt event loop (or other initialisation) finished. Ergo we split initialisation and the running of the thread, then use Qt SIGNALs to yield back into the Qt event loop. This ensures that the callback for the servers_list_changed is not called until the main Qt event loop is actually running.
electrum
lib/gui_lite.py
lib/gui_qt.py
lib/interface.py