Also append Images to list

This commit is contained in:
Jan Bader 2023-12-06 16:15:30 +01:00
parent a66b84a545
commit f4872c95d1

View File

@ -101,6 +101,16 @@ func (fm *FilesMap) HashedWorker(done chan bool) {
fm.lock.Unlock()
}
for file := range fm.ImagesHashed {
if *verbose {
fmt.Println("Finishing", file.path)
}
fm.lock.Lock()
fm.Images = append(fm.Images, file)
fm.lock.Unlock()
}
done <- true
}