Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | #import "ASIInputStream.h" | 21 | #import "ASIInputStream.h" |
| 22 | 22 | ||
| 23 | // Automatically set on build | 23 | // Automatically set on build |
| 24 | -NSString *ASIHTTPRequestVersion = @"v1.5-37 2010-01-29"; | 24 | +NSString *ASIHTTPRequestVersion = @"v1.5-38 2010-01-29"; |
| 25 | 25 | ||
| 26 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; | 26 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; |
| 27 | 27 | ||
| @@ -3459,7 +3459,7 @@ static BOOL isiPhoneOS2; | @@ -3459,7 +3459,7 @@ static BOOL isiPhoneOS2; | ||
| 3459 | // Yes, put this request to sleep until a second is up, with extra added punishment sleeping time for being very naughty (we have used more bandwidth than we were allowed) | 3459 | // Yes, put this request to sleep until a second is up, with extra added punishment sleeping time for being very naughty (we have used more bandwidth than we were allowed) |
| 3460 | double extraSleepyTime = (-bytesRemaining/(maxBandwidthPerSecond*1.0)); | 3460 | double extraSleepyTime = (-bytesRemaining/(maxBandwidthPerSecond*1.0)); |
| 3461 | [throttleWakeUpTime release]; | 3461 | [throttleWakeUpTime release]; |
| 3462 | - #if TARGET_OS_IPHONE | 3462 | + #if TARGET_OS_IPHONE || !defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 |
| 3463 | throttleWakeUpTime = [[bandwidthMeasurementDate addTimeInterval:extraSleepyTime] retain]; | 3463 | throttleWakeUpTime = [[bandwidthMeasurementDate addTimeInterval:extraSleepyTime] retain]; |
| 3464 | #else | 3464 | #else |
| 3465 | throttleWakeUpTime = [[bandwidthMeasurementDate dateByAddingTimeInterval:extraSleepyTime] retain]; | 3465 | throttleWakeUpTime = [[bandwidthMeasurementDate dateByAddingTimeInterval:extraSleepyTime] retain]; |
-
Please register or login to post a comment