Do not delete "corrupt" profiles

Retain to possibly restore on upgrade.
This commit is contained in:
Davide De Rosa 2021-01-04 08:59:12 +01:00
parent ed1bd7ee69
commit 6e640bee06
1 changed files with 3 additions and 3 deletions

View File

@ -307,9 +307,9 @@ public class ConnectionService: Codable {
} catch let e {
log.error("Could not decode profile JSON: \(e)")
// drop corrupt cache entry
cache.removeValue(forKey: key)
try? FileManager.default.removeItem(at: profileURL(key))
// // drop corrupt cache entry
// cache.removeValue(forKey: key)
// try? FileManager.default.removeItem(at: profileURL(key))
return nil
}