This commit is contained in:
@@ -176,7 +176,6 @@ func (f *sendReceiveFolder) pull() bool {
|
||||
|
||||
l.Debugf("%v pulling", f)
|
||||
|
||||
f.setState(FolderSyncing)
|
||||
f.clearPullErrors()
|
||||
|
||||
scanChan := make(chan string)
|
||||
@@ -194,6 +193,10 @@ func (f *sendReceiveFolder) pull() bool {
|
||||
default:
|
||||
}
|
||||
|
||||
// Needs to be set on every loop, as the puller might have set
|
||||
// it to FolderSyncing during the last iteration.
|
||||
f.setState(FolderSyncPreparing)
|
||||
|
||||
changed := f.pullerIteration(scanChan)
|
||||
|
||||
l.Debugln(f, "changed", changed, "on try", tries+1)
|
||||
@@ -1396,6 +1399,8 @@ func (f *sendReceiveFolder) pullerRoutine(in <-chan pullBlockState, out chan<- *
|
||||
continue
|
||||
}
|
||||
|
||||
f.setState(FolderSyncing) // Does nothing if already FolderSyncing
|
||||
|
||||
// The requestLimiter limits how many pending block requests we have
|
||||
// ongoing at any given time, based on the size of the blocks
|
||||
// themselves.
|
||||
|
||||
Reference in New Issue
Block a user