do not pass erred files on

This commit is contained in:
Jan Bader
2026-04-13 21:48:07 +02:00
parent 683ebf0858
commit e40c3c8560
+1 -1
View File
@@ -48,13 +48,13 @@ func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) {
hash, err := calculateFileHash(file.path)
fm.fileHashingBar.IncrInt64(file.size)
fm.FilesHashed <- file
if err != nil {
fmt.Fprintf(fm.progress, "Error calculating Hash for file %s: %v\n", file.path, err)
continue
}
file.hash = hash
fm.FilesHashed <- file
}
wg.Done()
}