Skip to content

Commit

Permalink
Fixes #20: The check for new releases should run once a day.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Paul Searles committed Feb 21, 2014
1 parent 26793d2 commit a9c4c06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions objective-octocat-notifications/AFGithubClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ - (void)checkForNewRelease
} failure:^(AFHTTPRequestOperation *operation, id json) {
NSLog(@"error: %@", json);
}];

// Check again in a day.
[NSTimer scheduledTimerWithTimeInterval:60 * 60 * 24
target:self
selector:@selector(checkForNewRelease)
userInfo:nil
repeats:NO];
}

- (void)getNotifications
Expand Down

0 comments on commit a9c4c06

Please sign in to comment.