Change double delayInSeconds to NSTimeInterval delay

This commit is contained in:
Mattt Thompson 2013-05-22 09:15:09 -07:00
parent 7845bf9b98
commit 6fc8b0a971

View file

@ -1145,8 +1145,8 @@ static const NSUInteger AFMultipartBodyStreamProviderDefaultBufferLength = 4096;
See: https://github.com/AFNetworking/AFNetworking/issues/907 See: https://github.com/AFNetworking/AFNetworking/issues/907
*/ */
double delayInSeconds = 2.0; NSTimeInterval delay = 2.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delay * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^{ dispatch_after(popTime, dispatch_get_main_queue(), ^{
outputStream.delegate = nil; outputStream.delegate = nil;
}); });