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

@@ -52,13 +52,7 @@ class SendAppOperation: ResultOperation<()>
for (index, data) in data.enumerated() {
pls[index] = data
}
var attempts = 10
let res = minimuxer_yeet_app_afc(ns_bundle_ptr, pls, UInt(data.length))
while (attempts != 0 && res != 0){
print("minimuxer_yeet_app_afc `res` != 0, retry #\(attempts)")
let res = minimuxer_yeet_app_afc(ns_bundle_ptr, pls, UInt(data.length))
attempts -= 1
}
if res == 0 {
print("minimuxer_yeet_app_afc `res` == \(res)")
self.progress.completedUnitCount += 1