From 64a591610b635c06c51cc42a54d4ea86605eda88 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 26 Oct 2018 20:13:35 +0200 Subject: [PATCH] lib/model: Check if files from queue are invalid (fixes #5291) (#5292) --- lib/model/folder_sendrecv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go index 6f9e264e3..d37250730 100644 --- a/lib/model/folder_sendrecv.go +++ b/lib/model/folder_sendrecv.go @@ -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)