From 28c86129a6d6eaa43be5d0887ca236202923a88d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 2 Jul 2019 00:03:10 +0300 Subject: Increase delay before opening notification --- Juick/APIClient.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick') diff --git a/Juick/APIClient.m b/Juick/APIClient.m index 24efc60..2712f1d 100644 --- a/Juick/APIClient.m +++ b/Juick/APIClient.m @@ -53,7 +53,7 @@ } -(void) pullNextFromPath:(NSString *)path params:(NSDictionary *) params callback:(void(^)(NSArray *, NSError *))callback { - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self.backgroundQueue addOperationWithBlock:^{ [self.manager GET:path parameters:params progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { NSInteger statusCode = [((NSHTTPURLResponse *) task.response) statusCode]; -- cgit v1.2.3