lib/model: Reset queue after all pulling is done (fixes #5867) (#6256)

This commit is contained in:
Simon Frei
2020-01-08 12:21:22 +01:00
committed by GitHub
parent ceb9475668
commit 08753ccabe
2 changed files with 36 additions and 2 deletions

View File

@@ -302,12 +302,12 @@ func (f *sendReceiveFolder) pullerIteration(scanChan chan<- string) int {
f.oldPullErrors = nil
f.pullErrorsMut.Unlock()
f.queue.Reset()
return changed
}
func (f *sendReceiveFolder) processNeeded(dbUpdateChan chan<- dbUpdateJob, copyChan chan<- copyBlocksState, scanChan chan<- string) (int, map[string]protocol.FileInfo, []protocol.FileInfo, error) {
defer f.queue.Reset()
changed := 0
var dirDeletions []protocol.FileInfo
fileDeletions := map[string]protocol.FileInfo{}