mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Finally fix retries for minimuxer calls
This commit is contained in:
committed by
nythepegasus
parent
090456bba1
commit
cc5c280882
@@ -51,18 +51,21 @@ final class SendAppOperation: ResultOperation<()>
|
||||
do {
|
||||
let bytes = Data(data).toRustByteSlice()
|
||||
try yeet_app_afc(app.bundleIdentifier, bytes.forRust())
|
||||
self.progress.completedUnitCount += 1
|
||||
self.finish(.success(()))
|
||||
break
|
||||
} catch {
|
||||
attempts -= 1
|
||||
if (attempts == 0) {
|
||||
return self.finish(.failure(error))
|
||||
} else { continue }
|
||||
self.finish(.failure(MinimuxerError.RwAfc))
|
||||
}
|
||||
}
|
||||
self.progress.completedUnitCount += 1
|
||||
return self.finish(.success(()))
|
||||
}
|
||||
} else {
|
||||
print("IPA doesn't exist????")
|
||||
return self.finish(.failure(ALTServerError(.underlyingError)))
|
||||
self.finish(.failure(OperationError.appNotFound))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user