Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:jum/appirater
Browse files Browse the repository at this point in the history
  • Loading branch information
jum committed Apr 8, 2012
2 parents 3706c3d + 9302e90 commit ed0de04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Appirater.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ - (BOOL)connectedToNetwork {

NSURL *testURL = [NSURL URLWithString:@"http://www.apple.com/"];
NSURLRequest *testRequest = [NSURLRequest requestWithURL:testURL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:20.0];
NSURLConnection *testConnection = [[[NSURLConnection alloc] initWithRequest:testRequest delegate:self] autorelease];
NSURLConnection *testConnection = [[NSURLConnection alloc] initWithRequest:testRequest delegate:self];

BOOL ret = ((isReachable && !needsConnection) || nonWiFi) ? (testConnection ? YES : NO) : NO;
[testConnection release];
Expand Down

0 comments on commit ed0de04

Please sign in to comment.