Showing
1 changed file
with
1 additions
and
7 deletions
| @@ -513,8 +513,6 @@ static NSOperationQueue *sharedQueue = nil; | @@ -513,8 +513,6 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 513 | NSLog(@"Request cancelled: %@",self); | 513 | NSLog(@"Request cancelled: %@",self); |
| 514 | #endif | 514 | #endif |
| 515 | 515 | ||
| 516 | - [self autorelease]; | ||
| 517 | - | ||
| 518 | [[self cancelledLock] lock]; | 516 | [[self cancelledLock] lock]; |
| 519 | 517 | ||
| 520 | if ([self isCancelled] || [self complete]) { | 518 | if ([self isCancelled] || [self complete]) { |
| @@ -534,11 +532,7 @@ static NSOperationQueue *sharedQueue = nil; | @@ -534,11 +532,7 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 534 | 532 | ||
| 535 | - (void)cancel | 533 | - (void)cancel |
| 536 | { | 534 | { |
| 537 | - [self retain]; | 535 | + [self performSelector:@selector(cancelOnRequestThread) onThread:[[self class] threadForRequest:self] withObject:nil waitUntilDone:NO]; |
| 538 | - [self performSelector:@selector(cancelOnRequestThread) | ||
| 539 | - onThread:[[self class] threadForRequest:self] | ||
| 540 | - withObject:nil | ||
| 541 | - waitUntilDone:NO]; | ||
| 542 | } | 536 | } |
| 543 | 537 | ||
| 544 | // Call this method to get the received data as an NSString. Don't use for binary data! | 538 | // Call this method to get the received data as an NSString. Don't use for binary data! |
-
Please register or login to post a comment