Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

TTURLRequest / NSURLRequest immediate timeout issues

  • Loading branch information...
commit 9c36bed9cd7a71be47d24025690199e95d72eed2 1 parent b38bbf4
@scompt scompt authored tonklon committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Three20Network/Sources/TTRequestLoader.m
View
4 src/Three20Network/Sources/TTRequestLoader.m
@@ -126,7 +126,7 @@ - (void)connectToURL:(NSURL*)URL {
}
TTNetworkRequestStarted();
- TTURLRequest* request = _requests.count == 1 ? [_requests objectAtIndex:0] : nil;
+ TTURLRequest* request = _requests.count >= 1 ? [_requests objectAtIndex:0] : nil;
// there are situations where urlPath is somehow nil (therefore crashing in
// createNSURLRequest:URL:, even if we checked for non-blank values before
@@ -194,7 +194,7 @@ - (void)loadSynchronously:(NSURL*)URL {
// correctly, this would be the place to start tracing for errors.
TTNetworkRequestStarted();
- TTURLRequest* request = _requests.count == 1 ? [_requests objectAtIndex:0] : nil;
+ TTURLRequest* request = _requests.count >= 1 ? [_requests objectAtIndex:0] : nil;
NSURLRequest* URLRequest = [_queue createNSURLRequest:request URL:URL];
NSHTTPURLResponse* response = nil;
Please sign in to comment.
Something went wrong with that request. Please try again.