Permalink
Browse files

Move cancelLoad out of ASIHTTPRequest.h, added a note about not calli…

…ng it
  • Loading branch information...
1 parent 4d910b2 commit 1ac7f8a6aaef3fb189f2f764f66b1f6fe5ae1c69 @pokeb committed Oct 4, 2009
Showing with 2 additions and 4 deletions.
  1. +0 −3 Classes/ASIHTTPRequest.h
  2. +2 −1 Classes/ASIHTTPRequest.m
View
@@ -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;
View
@@ -92,6 +92,7 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy
// Private stuff
@interface ASIHTTPRequest ()
+- (void)cancelLoad;
- (BOOL)askDelegateForCredentials;
- (BOOL)askDelegateForProxyCredentials;
+ (void)measureBandwidthUsage;
@@ -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];

0 comments on commit 1ac7f8a

Please sign in to comment.