mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-24 07:28:27 +00:00
Don't use 100% doing nothing
This commit is contained in:
parent
87c3790fa8
commit
e8c8cc550b
@ -586,9 +586,9 @@ func sendIndexes(conn protocol.Connection, repo string, fs *files.Set) {
|
|||||||
for err == nil {
|
for err == nil {
|
||||||
if !initial {
|
if !initial {
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
}
|
if fs.LocalVersion(protocol.LocalNodeID) <= minLocalVer {
|
||||||
if fs.LocalVersion(protocol.LocalNodeID) <= minLocalVer {
|
continue
|
||||||
continue
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
batch := make([]protocol.FileInfo, 0, indexBatchSize)
|
batch := make([]protocol.FileInfo, 0, indexBatchSize)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user