Skip to content

Commit

Permalink
Move cancelLoad out of ASIHTTPRequest.h, added a note about not calli…
Browse files Browse the repository at this point in the history
…ng it
  • Loading branch information
pokeb committed Oct 4, 2009
1 parent 4d910b2 commit 1ac7f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Classes/ASIHTTPRequest.h
Expand Up @@ -351,9 +351,6 @@ extern unsigned long const ASIWWANBandwidthThrottleAmount;
// Start the read stream. Called by loadRequest, and again to restart the request when authentication is needed
- (void)startRequest;

// Cancel loading and clean up
- (void)cancelLoad;

// Call to delete the temporary file used during a file download (if it exists)
// No need to call this if the request succeeds - it is removed automatically
- (void)removeTemporaryDownloadFile;
Expand Down
3 changes: 2 additions & 1 deletion Classes/ASIHTTPRequest.m
Expand Up @@ -92,6 +92,7 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy
// Private stuff
@interface ASIHTTPRequest ()

- (void)cancelLoad;
- (BOOL)askDelegateForCredentials;
- (BOOL)askDelegateForProxyCredentials;
+ (void)measureBandwidthUsage;
Expand Down Expand Up @@ -771,7 +772,7 @@ - (void)loadRequest
pool = nil;
}

// Cancel loading and clean up
// Cancel loading and clean up. NEVER CALL THIS FROM ANOTHER THREAD!
- (void)cancelLoad
{
[[self cancelledLock] lock];
Expand Down

0 comments on commit 1ac7f8a

Please sign in to comment.