Open andrask opened 10 years ago
Good catch – I'll take a look.
I'm not actually sure why but after Cancel the signal returned by voteForPhoto: is not executed.
Something sneaky is going on inside. The request for voting seems to be started but it never finishes and nothing happens. I went down to PXRequest, I see this line firing, and then nothing happens, none of the delegate methods are called.
I know that NSURLConnection is being deprecated in favor of NSURLSession but this should not mean that it stops working. Do you have any insight?
On the other hand, the login sends a synchronous request which seems to work fine.
When the vote button is pushed and the user is not logged in, the login screen is shown. If this is cancelled, the Vote button stays disabled and the FRPPhotoDetailViewController can only be dismissed with Done. Failed login should be handled correctly.