diff --git a/AltStore/Operations/SendAppOperation.swift b/AltStore/Operations/SendAppOperation.swift index e630ded6..1a46386b 100644 --- a/AltStore/Operations/SendAppOperation.swift +++ b/AltStore/Operations/SendAppOperation.swift @@ -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(()))