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

This reverts commit bee7cce081.
This commit is contained in:
Jakob Borg
2019-11-24 09:33:58 +01:00
parent 6d27cf6563
commit 45a711570e
8 changed files with 61 additions and 54 deletions

View File

@@ -239,6 +239,16 @@ 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