Permalink
Browse files

Merge branch 'master' of github.com:jum/appirater

  • Loading branch information...
2 parents 3706c3d + 9302e90 commit ed0de04acc0612f0228caa0ec85f3eb09c5ca010 @jum committed Apr 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Appirater.m
View
@@ -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];

0 comments on commit ed0de04

Please sign in to comment.