Permalink
Browse files

fixed issue with URLConnection not retained properly

  • Loading branch information...
1 parent d99d25e commit 5ac4a0222531c7c0a53f11cb3a501991a6461743 @zagraves zagraves committed Sep 18, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 Source/YOSSocial/YOSRequestClient.m
@@ -78,10 +78,9 @@ - (BOOL)sendAsyncRequestWithDelegate:(id)delegate
NSMutableURLRequest *urlRequest = [self buildUrlRequest];
// self.URLConnection = [[NSURLConnection connectionWithRequest:urlRequest delegate:self] retain];
- self.URLConnection = [[NSURLConnection alloc] initWithRequest:urlRequest delegate:self startImmediately:YES];
+ [self setURLConnection:[[NSURLConnection alloc] initWithRequest:urlRequest delegate:self startImmediately:YES]];
BOOL connectionCreated = (self.URLConnection != nil);
- //[self.URLConnection start];
return connectionCreated;
}

0 comments on commit 5ac4a02

Please sign in to comment.