mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
Hopefully fix Heartbeat issues
This commit is contained in:
parent
7c85bd6b16
commit
fdb4e078b7
1 changed files with 8 additions and 6 deletions
|
|
@ -256,12 +256,6 @@ struct HeartbeatApp: App {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { timer in
|
||||
if !isHeartbeat {
|
||||
startHeartbeatInBackground()
|
||||
}
|
||||
}
|
||||
}
|
||||
.overlay(
|
||||
ZStack {
|
||||
|
|
@ -460,6 +454,14 @@ func startHeartbeatInBackground() {
|
|||
if FileManager.default.fileExists(atPath: URL.documentsDirectory.appendingPathComponent("DDI/Image.dmg.trustcache").path) {
|
||||
MountingProgress.shared.pubMount()
|
||||
}
|
||||
|
||||
|
||||
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { timer in
|
||||
if !isHeartbeat {
|
||||
startHeartbeatInBackground()
|
||||
timer.invalidate()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
print("Error: \(message ?? "") (Code: \(result))")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue