From 2b536de37fe31afff071f10f3f0f01ee08f8f14e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 1 Sep 2014 17:48:39 +0200 Subject: [PATCH] Don't fake indexes for stopped repos --- cmd/syncthing/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 91994ccb..45cc8139 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) } }