Skip to content

Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.

fix(scanning): synchronize collectionSet read in shouldSkipItem (#67)

Dávid Balatoni43c4afb6eada
diff --git a/PureMac/Logic/Scanning/AppPathFinder.swift b/PureMac/Logic/Scanning/AppPathFinder.swift
index 48e7a26..e79535b 100644
--- a/PureMac/Logic/Scanning/AppPathFinder.swift
+++ b/PureMac/Logic/Scanning/AppPathFinder.swift
@@ -266,7 +266,7 @@ class AppPathFinder {
// MARK: - Skip Logic
private func shouldSkipItem(_ normalizedName: String, at url: URL) -> Bool {
- if collectionSet.contains(url) { return true }
+ if collectionQueue.sync(execute: { collectionSet.contains(url) }) { return true }
for skip in skipConditions {
for path in skip.skipPaths {