Fix ddi mounting

This commit is contained in:
Stephen B 2025-12-16 14:17:09 -05:00
parent 81cf50c40f
commit 6d6075b763
2 changed files with 7 additions and 4 deletions

View file

@ -812,9 +812,12 @@ func startHeartbeatInBackground(requireVPNConnection: Bool? = nil, showErrorUI:
print("Heartbeat started successfully")
pubHeartBeat = true
if FileManager.default.fileExists(atPath: URL.documentsDirectory.appendingPathComponent("DDI/Image.dmg.trustcache").path) {
// MountingProgress.shared.pubMount()
DispatchQueue.main.async {
let trustcachePath = URL.documentsDirectory.appendingPathComponent("DDI/Image.dmg.trustcache").path
guard FileManager.default.fileExists(atPath: trustcachePath),
!MountingProgress.shared.coolisMounted,
MountingProgress.shared.mountingThread == nil else { return }
MountingProgress.shared.pubMount()
}
} catch {
let err2 = error as NSError

View file

@ -214,7 +214,7 @@ struct HomeView: View {
refreshBackground()
checkPairingFileExists()
heartbeatOK = pubHeartBeat
if !mounting.coolisMounted {
if mounting.mountingThread == nil && !mounting.coolisMounted {
MountingProgress.shared.checkforMounted()
}
}