Perform initial scan asynchronously (fixes #509, fixes #464)

This commit is contained in:
Jakob Borg
2014-09-30 17:34:31 +02:00
parent 3eb000fa60
commit 2091e12e82
4 changed files with 18 additions and 48 deletions

View File

@@ -522,13 +522,6 @@ nextFolder:
}
}
// Walk the folder and update the local model before establishing any
// connections to other devices.
m.CleanFolders()
l.Infoln("Performing initial folder scan")
m.ScanFolders()
// Remove all .idx* files that don't belong to an active folder.
validIndexes := make(map[string]bool)