Browse Source

Don't use 100% doing nothing

Jakob Borg 11 years ago
parent
commit
e8c8cc550b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      model/model.go

+ 3 - 3
model/model.go

@@ -586,9 +586,9 @@ func sendIndexes(conn protocol.Connection, repo string, fs *files.Set) {
 	for err == nil {
 		if !initial {
 			time.Sleep(5 * time.Second)
-		}
-		if fs.LocalVersion(protocol.LocalNodeID) <= minLocalVer {
-			continue
+			if fs.LocalVersion(protocol.LocalNodeID) <= minLocalVer {
+				continue
+			}
 		}
 
 		batch := make([]protocol.FileInfo, 0, indexBatchSize)