Reputation: 1299
When I put an asynchronous ASIHTTPRequest to work, called Request1, when it finishes it calls the - (void)requestFinished:(ASIFormDataRequest *)request2
which is the wrong thread. How does that happen, and more importantly, how do i avoid it?
Upvotes: 0
Views: 825
Reputation: 38475
ASIHTTPRequest
should always call it's request finished / error methods on the main thread.
If you want to then go back into another thread then it's up to you to do that (i.e. performSelectorInBackground:
, NSOperationQueue
etc).
Upvotes: 1