mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
This commit is contained in:
parent
79e67b7f79
commit
b45d77b6be
@ -513,13 +513,15 @@ func (f *sendReceiveFolder) processDeletions(fileDeletions map[string]protocol.F
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, dir := range dirDeletions {
|
// Process in reverse order to delete depth first
|
||||||
|
for i := range dirDeletions {
|
||||||
select {
|
select {
|
||||||
case <-f.ctx.Done():
|
case <-f.ctx.Done():
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dir := dirDeletions[len(dirDeletions)-i-1]
|
||||||
f.resetPullError(dir.Name)
|
f.resetPullError(dir.Name)
|
||||||
l.Debugln(f, "Deleting dir", dir.Name)
|
l.Debugln(f, "Deleting dir", dir.Name)
|
||||||
f.deleteDir(dir, dbUpdateChan, scanChan)
|
f.deleteDir(dir, dbUpdateChan, scanChan)
|
||||||
|
Loading…
Reference in New Issue
Block a user