mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-10 23:33:29 +01:00
Retry AFC 10 times before giving up
This commit is contained in:
committed by
Joe Mattiello
parent
d797ddd668
commit
7162a029bb
@@ -51,7 +51,13 @@ 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 {
|
||||
self.progress.completedUnitCount += 1
|
||||
self.finish(.success(()))
|
||||
|
||||
Reference in New Issue
Block a user