1
0
Fork 0
mirror of synced 2024-04-29 10:03:00 +12:00

Fix crashing images (#1230)

This commit is contained in:
Rafał Mikrut 2024-02-27 12:58:31 +01:00 committed by GitHub
parent e5a0219bc9
commit 2a32a52aa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,6 +279,12 @@ impl SimilarImages {
let (progress_thread_handle, progress_thread_run, atomic_counter, check_was_stopped) =
prepare_thread_handler_common(progress_sender, 1, 2, non_cached_files_to_check.len(), CheckingMethod::None, self.common_data.tool_type);
// Throw out images with not proper type - TODO why this happens, only broken cache?
let non_cached_files_to_check = non_cached_files_to_check
.into_iter()
.filter(|(_, file_entry)| file_entry.image_type != ImageType::Unknown)
.collect::<BTreeMap<_, _>>();
debug!("hash_images - start hashing images");
let mut vec_file_entry: Vec<ImagesEntry> = non_cached_files_to_check
.into_par_iter()