Skip to content

Commit

Permalink
Tweak tianzhou's change for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
pokeb committed May 28, 2011
1 parent f7c0f5e commit f5b701a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/ASIHTTPRequest.m
Expand Up @@ -24,7 +24,7 @@
#import "ASIDataCompressor.h"

// Automatically set on build
NSString *ASIHTTPRequestVersion = @"v1.8-91 2011-05-28";
NSString *ASIHTTPRequestVersion = @"v1.8-94 2011-05-28";

static NSString *defaultUserAgent = nil;

Expand Down Expand Up @@ -4485,12 +4485,12 @@ + (BOOL)isBandwidthThrottled
#if TARGET_OS_IPHONE
[bandwidthThrottlingLock lock];

BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && !!maxBandwidthPerSecond);
BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond > 0));
[bandwidthThrottlingLock unlock];
return throttle;
#else
[bandwidthThrottlingLock lock];
BOOL throttle = !!maxBandwidthPerSecond;
BOOL throttle = (maxBandwidthPerSecond > 0);
[bandwidthThrottlingLock unlock];
return throttle;
#endif
Expand Down

0 comments on commit f5b701a

Please sign in to comment.