title: NSURLConnect works only 1 time
body: <p>I'm trying to do a request but it works only in the first time....</p>
  
  <p>Here is my code:</p>
  
  <pre><code>NSArray *infos = [rows objectAtIndex:indexPath.row];
  NSString *thumbPath = thePath;
  
  NSURLRequest *thumbRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:thumbPath]cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10];
  
  self-&gt;thumbConnection = [[NSURLConnection alloc] initWithRequest:thumbRequest
                                                          delegate:self
                                                  startImmediately:YES];
  
       self-&gt;thumbData = [[NSMutableData alloc]init];
  </code></pre>
  
  <p>when receive Response</p>
  
  <pre><code>- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
  
  if (self-&gt;thumbData == nil) {
      self-&gt;thumbData = [[NSMutableData alloc]init];
  }
  - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
  
  self.thumbImage.image = [UIImage imageWithData:self-&gt;thumbData];
  
  self.thumbActivityView.hidden = YES;
  
  self-&gt;thumbData = nil;
  }
  </code></pre>
  
  <p>when didFinishDownloading: 
    - (void)connectionDidFinishLoading:(NSURLConnection *)connection {</p>
  
  <pre><code>self.thumbImage.image = [UIImage imageWithData:self-&gt;thumbData];
  
  self.thumbActivityView.hidden = YES;
  
  [self-&gt;thumbData release];
  
  self-&gt;thumbData = nil;
  </code></pre>
  
  <p>}</p>
  
  <p>when timeout or other erros method:</p>
  
  <pre><code>   - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
  [self-&gt;thumbData release];
  self-&gt;thumbData = nil;
  self.thumbActivityView.hidden = YES;
  [thumbConnection release];
  self-&gt;thumbConnection = nil;
  
  }
  </code></pre>