Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -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.8-91 2011-05-28"; | 27 | +NSString *ASIHTTPRequestVersion = @"v1.8-94 2011-05-28"; |
| 28 | 28 | ||
| 29 | static NSString *defaultUserAgent = nil; | 29 | static NSString *defaultUserAgent = nil; |
| 30 | 30 | ||
| @@ -4485,12 +4485,12 @@ static NSOperationQueue *sharedQueue = nil; | @@ -4485,12 +4485,12 @@ static NSOperationQueue *sharedQueue = nil; | ||
| 4485 | #if TARGET_OS_IPHONE | 4485 | #if TARGET_OS_IPHONE |
| 4486 | [bandwidthThrottlingLock lock]; | 4486 | [bandwidthThrottlingLock lock]; |
| 4487 | 4487 | ||
| 4488 | - BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && !!maxBandwidthPerSecond); | 4488 | + BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond > 0)); |
| 4489 | [bandwidthThrottlingLock unlock]; | 4489 | [bandwidthThrottlingLock unlock]; |
| 4490 | return throttle; | 4490 | return throttle; |
| 4491 | #else | 4491 | #else |
| 4492 | [bandwidthThrottlingLock lock]; | 4492 | [bandwidthThrottlingLock lock]; |
| 4493 | - BOOL throttle = !!maxBandwidthPerSecond; | 4493 | + BOOL throttle = (maxBandwidthPerSecond > 0); |
| 4494 | [bandwidthThrottlingLock unlock]; | 4494 | [bandwidthThrottlingLock unlock]; |
| 4495 | return throttle; | 4495 | return throttle; |
| 4496 | #endif | 4496 | #endif |
-
Please register or login to post a comment