Don't use 100% doing nothing

This commit is contained in:
Jakob Borg 2014-07-25 14:59:56 +02:00
parent 87c3790fa8
commit e8c8cc550b

View File

@ -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)