Revert "Merge pull request #189 from Nythepegasus/feature/retries"

This reverts commit 50841f5e24, reversing
changes made to d797ddd668.
This commit is contained in:
Joseph Mattello
2023-01-04 08:48:33 -05:00
parent f3815dc45e
commit 13f306742e
3 changed files with 5 additions and 41 deletions

View File

@@ -147,13 +147,7 @@ class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDelegate
func start_minimuxer_threads(_ pairing_file: String) {
set_usbmuxd_socket()
var res = start_minimuxer(pairing_file: pairing_file)
var attempts = 10
while (attempts != 0 && res != 0) {
print("start_minimuxer `res` != 0, retry #\(attempts)")
res = start_minimuxer(pairing_file: pairing_file)
attempts -= 1
}
let res = start_minimuxer(pairing_file: pairing_file)
if res != 0 {
displayError("minimuxer failed to start. Incorrect arguments were passed.")
}