lib/model: Add folders on start in model (#6135)

This commit is contained in:
Simon Frei
2019-11-08 10:56:16 +01:00
committed by GitHub
parent f15a1528fc
commit bee7cce081
8 changed files with 54 additions and 61 deletions

View File

@@ -239,16 +239,6 @@ func (a *App) startup() error {
m.StartDeadlockDetector(20 * time.Minute)
}
// Add and start folders
for _, folderCfg := range a.cfg.Folders() {
if folderCfg.Paused {
folderCfg.CreateRoot()
continue
}
m.AddFolder(folderCfg)
m.StartFolder(folderCfg.ID)
}
a.mainService.Add(m)
// Start discovery