aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-09-01 17:48:39 +0200
committerJakob Borg <jakob@nym.se>2014-09-01 17:48:39 +0200
commit2b536de37fe31afff071f10f3f0f01ee08f8f14e (patch)
tree6c5de8f9eb4b842b77886f910dacbaa4d3da2664
parent2ffa92ba1b883bb523d51fedf81e3a40136caf66 (diff)
downloadsyncthing-2b536de37fe31afff071f10f3f0f01ee08f8f14e.tar.gz
syncthing-2b536de37fe31afff071f10f3f0f01ee08f8f14e.zip
Don't fake indexes for stopped repos
-rw-r--r--cmd/syncthing/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go
index 91994ccb2..45cc81390 100644
--- a/cmd/syncthing/main.go
+++ b/cmd/syncthing/main.go
@@ -483,7 +483,13 @@ nextRepo:
// start needing a bunch of files which are nowhere to be found. This
// needs to be changed when we correctly do persistent indexes.
for _, repoCfg := range cfg.Repositories {
+ if repoCfg.Invalid != "" {
+ continue
+ }
for _, node := range repoCfg.NodeIDs() {
+ if node == myID {
+ continue
+ }
m.Index(node, repoCfg.ID, nil)
}
}