Add folders without restart (fixes #2063)

This commit is contained in:
Jakob Borg
2015-07-23 16:13:53 +02:00
parent de89d7a976
commit 21accd534c
4 changed files with 166 additions and 20 deletions

View File

@@ -628,10 +628,8 @@ func syncthingMain() {
// Routine to pull blocks from other devices to synchronize the local
// folder. Does not run when we are in read only (publish only) mode.
if folderCfg.ReadOnly {
l.Okf("Ready to synchronize %s (read only; no external updates accepted)", folderCfg.ID)
m.StartFolderRO(folderCfg.ID)
} else {
l.Okf("Ready to synchronize %s (read-write)", folderCfg.ID)
m.StartFolderRW(folderCfg.ID)
}
}