lib/model: Check if files from queue are invalid (fixes #5291) (#5292)

This commit is contained in:
Simon Frei 2018-10-26 20:13:35 +02:00 committed by Audrius Butkevicius
parent 9a07b22d4a
commit 64a591610b

View File

@ -448,7 +448,7 @@ nextFile:
continue
}
if fi.IsDeleted() || fi.Type != protocol.FileInfoTypeFile {
if fi.IsDeleted() || fi.IsInvalid() || fi.Type != protocol.FileInfoTypeFile {
// The item has changed type or status in the index while we
// were processing directories above.
f.queue.Done(fileName)