mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Locally paused folders will fail on checkFolderRunningLocked() and therefore abort the loop. Avoid this by skipping paused folders directly. Co-authored-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
parent
28c660e41d
commit
4d4bfe8032
@ -877,9 +877,14 @@ func (m *model) Completion(device protocol.DeviceID, folder string) (FolderCompl
|
||||
// We want completion for all (shared) folders as an aggregate.
|
||||
var comp FolderCompletion
|
||||
for _, fcfg := range m.cfg.FolderList() {
|
||||
if fcfg.Paused {
|
||||
continue
|
||||
}
|
||||
if device == protocol.LocalDeviceID || fcfg.SharedWith(device) {
|
||||
folderComp, err := m.folderCompletion(device, fcfg.ID)
|
||||
if err != nil {
|
||||
if errors.Is(err, ErrFolderPaused) {
|
||||
continue
|
||||
} else if err != nil {
|
||||
return FolderCompletion{}, err
|
||||
}
|
||||
comp.add(folderComp)
|
||||
|
Loading…
Reference in New Issue
Block a user