lib/model: Prevent repeat db update (#5231)

This commit is contained in:
Simon Frei 2018-09-27 07:41:40 +02:00 committed by Jakob Borg
parent cb0950b3fd
commit c2b0d309fb

View File

@ -916,8 +916,6 @@ func (f *sendReceiveFolder) renameFile(cur, source, target protocol.FileInfo, db
if err = f.performFinish(nil, target, curTarget, true, tempName, dbUpdateChan, scanChan); err != nil {
return
}
dbUpdateChan <- dbUpdateJob{target, dbUpdateHandleFile}
} else {
// We failed the rename so we have a source file that we still need to
// get rid of. Attempt to delete it instead so that we make *some*