Also cancel the operation in the block-based flow. The same is already done for…

Authored by Nikolay Valtchanov <valtchanov@gmail.com> on May 17 2017, 8:51 PM.

Description

Also cancel the operation in the block-based flow. The same is already done for NIOperations, and with good reason.

The way to test this change is by using large images in a table view with lots of rows, and scroll up and down to force two equivalent requests to run in the same cell (for the same image URL).

Expected: Things load.
Actual: Occasionally a cell will remain blank, and the reason is AFNetworking cancels the duplicate request, but instead of ignoring that cancelation (like we do for NIOperations), we wipe our operation var. Which eventually leads to ignoring the successful completion of the surviving image request, when we should in fact proceed and load the image as normal.

Details

Committed
Nikolay Valtchanov <valtchanov@gmail.com>May 17 2017, 9:06 PM
Parents
rNIMBUSfcef3cc72098: Add an enum property "linksOrdering" to NIAttributedLabel to - make it…
Branches
Unknown
Tags
Unknown
References
refs/pull/671/head