mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Invalidate the timer before dispatching error delegate callbacks
This commit is contained in:
@@ -199,9 +199,9 @@ extern NSString* cacheURLKey;
|
||||
}
|
||||
|
||||
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
|
||||
_failureError = [error retain];
|
||||
[_request didFailLoadWithError:_failureError];
|
||||
_failureError = [error retain];
|
||||
[_request invalidateTimeoutTimer];
|
||||
[_request didFailLoadWithError:_failureError];
|
||||
}
|
||||
|
||||
- (NSInputStream *)connection:(NSURLConnection *)connection needNewBodyStream:(NSURLRequest *)request {
|
||||
|
||||
Reference in New Issue
Block a user