Move to goroutine for faster startup time

This commit is contained in:
obscuren 2014-07-24 14:16:43 +02:00
parent 0ca776a6b8
commit 82a84dca80

View File

@ -143,10 +143,12 @@ func (gui *Gui) showWallet(context *qml.Context) (*qml.Window, error) {
win := gui.createWindow(component) win := gui.createWindow(component)
go func() {
gui.setInitialBlockChain() gui.setInitialBlockChain()
gui.loadAddressBook() gui.loadAddressBook()
gui.readPreviousTransactions() gui.readPreviousTransactions()
gui.setPeerInfo() gui.setPeerInfo()
}()
go gui.update() go gui.update()