mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Fix DDI mount watchdog crash (hopefully)
This commit is contained in:
parent
66e359c7e2
commit
70d31322e7
1 changed files with 4 additions and 2 deletions
|
|
@ -32,7 +32,9 @@ final class MountingProgress: ObservableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
func pubMount() {
|
func pubMount() {
|
||||||
mount()
|
DispatchQueue.global(qos: .utility).async { [weak self] in
|
||||||
|
self?.mount()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func mount() {
|
private func mount() {
|
||||||
|
|
@ -62,7 +64,7 @@ final class MountingProgress: ObservableObject {
|
||||||
if let mountError {
|
if let mountError {
|
||||||
showAlert(title: "DDI Mount Failed", message: mountError, showOk: true, showTryAgain: true) { shouldTryAgain in
|
showAlert(title: "DDI Mount Failed", message: mountError, showOk: true, showTryAgain: true) { shouldTryAgain in
|
||||||
if shouldTryAgain {
|
if shouldTryAgain {
|
||||||
self.mount()
|
self.pubMount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue