robotmedia/RMStore

_restoreTransactionsSuccessBlock is called after download is failed?

Closed this issue · 0 comments

ioue commented

I'm implementing restore block with Apple hosted download contents.

When a download is failed, didFailDownload is called, then go to didFailTransaction. Finally it reaches to notifyRestoreTransactionFinishedIfApplicableAfterTransaction.

In the function, _restoredCompletedTransactionsFinished would be YES because restoring transaction succeeded, and _pendingRestoredTransactionsCount goes to 0.
So this case, _restoreTransactionsSuccessBlock block would be called but the actual restoring transaction is failed because the contents is not restored in this case.