Skip to content

Commit

Permalink
closes #2035
Browse files Browse the repository at this point in the history
  • Loading branch information
timMorrill committed Apr 28, 2014
1 parent ddae2e0 commit e272901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AFNetworking/AFURLConnectionOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ - (void)connectionDidFinishLoading:(NSURLConnection __unused *)connection {
self.responseData = [self.outputStream propertyForKey:NSStreamDataWrittenToMemoryStreamKey];

[self.outputStream close];
self.outputStream = nil;
if (self.responseData) {
self.outputStream = nil;
}

self.connection = nil;

Expand Down

0 comments on commit e272901

Please sign in to comment.