Skip to content
Snippets Groups Projects
Commit 582f8bd1 authored by George Nachman's avatar George Nachman
Browse files

Make the GCD timer start after the period is up

parent b286d21e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -168,7 +168,7 @@ static const NSTimeInterval kBackgroundUpdateCadence = 1;
 
_gcdUpdateTimer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, dispatch_get_main_queue());
dispatch_source_set_timer(_gcdUpdateTimer,
dispatch_walltime(NULL, 0),
dispatch_time(DISPATCH_TIME_NOW, period * NSEC_PER_SEC),
period * NSEC_PER_SEC,
0.005 * NSEC_PER_SEC);
__weak __typeof(self) weakSelf = self;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment