From e8c8cc550b1d796e94c02bbdd19eb20775a22af8 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 25 Jul 2014 14:59:56 +0200 Subject: [PATCH] Don't use 100% doing nothing --- model/model.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/model.go b/model/model.go index 0b7d4948..3ee159ad 100644 --- a/model/model.go +++ b/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)