RestKit/RestKit — pull request #720 by cfis (2012-05-07 03:23:09+00:00)
Title: Reset isLoading *after* calling delegates on errors

This commit sets isLoading to NO after calling delegates. This solves the following issue in our app:

* Make request to server, but iPhone is offline, so an error happens
* In our delegate we check that the phone is offline and show the user an alert
* However, since isLoading is set to NO before that alert, the request if executed over and over again while the alter is being shown
* This results in the alert being shown multiple times, you have to click through them all which is very confusing (not too mention annoying)

By moving isLoading down, only one error message is displayed. Then once RestKit leaves this messages, it will clear the request out of the queue so its only executed once.

Let me know if you have any questions - but this small changes makes a big difference for our app.

Thanks - Charlie