Ben Copsey

Stop status timer as soon as request completes

@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 #import "ASIDataCompressor.h" 24 #import "ASIDataCompressor.h"
25 25
26 // Automatically set on build 26 // Automatically set on build
27 -NSString *ASIHTTPRequestVersion = @"v1.7-133 2010-11-10"; 27 +NSString *ASIHTTPRequestVersion = @"v1.7-134 2010-11-10";
28 28
29 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; 29 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
30 30
@@ -3076,7 +3076,7 @@ static NSOperationQueue *sharedQueue = nil; @@ -3076,7 +3076,7 @@ static NSOperationQueue *sharedQueue = nil;
3076 #if DEBUG_REQUEST_STATUS 3076 #if DEBUG_REQUEST_STATUS
3077 NSLog(@"Request %@ finished downloading data (%qu bytes)",self, [self totalBytesRead]); 3077 NSLog(@"Request %@ finished downloading data (%qu bytes)",self, [self totalBytesRead]);
3078 #endif 3078 #endif
3079 - 3079 + [self setStatusTimer:nil];
3080 [self setDownloadComplete:YES]; 3080 [self setDownloadComplete:YES];
3081 3081
3082 if (![self responseHeaders]) { 3082 if (![self responseHeaders]) {
@@ -3194,7 +3194,6 @@ static NSOperationQueue *sharedQueue = nil; @@ -3194,7 +3194,6 @@ static NSOperationQueue *sharedQueue = nil;
3194 3194
3195 // If request has asked delegate or ASIAuthenticationDialog for credentials 3195 // If request has asked delegate or ASIAuthenticationDialog for credentials
3196 } else if ([self authenticationNeeded]) { 3196 } else if ([self authenticationNeeded]) {
3197 - [self setStatusTimer:nil];  
3198 CFRunLoopStop(CFRunLoopGetCurrent()); 3197 CFRunLoopStop(CFRunLoopGetCurrent());
3199 } 3198 }
3200 3199
@@ -3225,7 +3224,6 @@ static NSOperationQueue *sharedQueue = nil; @@ -3225,7 +3224,6 @@ static NSOperationQueue *sharedQueue = nil;
3225 [self willChangeValueForKey:@"isExecuting"]; 3224 [self willChangeValueForKey:@"isExecuting"];
3226 3225
3227 [self setInProgress:NO]; 3226 [self setInProgress:NO];
3228 - [self setStatusTimer:nil];  
3229 finished = YES; 3227 finished = YES;
3230 3228
3231 if (wasInProgress) 3229 if (wasInProgress)