mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Fix ddi mounting
This commit is contained in:
parent
81cf50c40f
commit
6d6075b763
2 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ struct HomeView: View {
|
|||
refreshBackground()
|
||||
checkPairingFileExists()
|
||||
heartbeatOK = pubHeartBeat
|
||||
if !mounting.coolisMounted {
|
||||
if mounting.mountingThread == nil && !mounting.coolisMounted {
|
||||
MountingProgress.shared.checkforMounted()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue