Change double delayInSeconds to NSTimeInterval delay
This commit is contained in:
parent
7845bf9b98
commit
6fc8b0a971
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue