Fixing warnings.

This commit is contained in:
Samuel Clay 2017-10-04 17:02:45 -07:00
parent 7d6acfebb5
commit 92b92f59f9
2 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,9 @@
@synthesize appDelegate;
- (void)main {
appDelegate = [NewsBlurAppDelegate sharedAppDelegate];
dispatch_sync(dispatch_get_main_queue(), ^{
appDelegate = [NewsBlurAppDelegate sharedAppDelegate];
});
NSLog(@"Cleaning stale offline images...");

View file

@ -17,7 +17,9 @@
@synthesize appDelegate;
- (void)main {
appDelegate = [NewsBlurAppDelegate sharedAppDelegate];
dispatch_sync(dispatch_get_main_queue(), ^{
self.appDelegate = [NewsBlurAppDelegate sharedAppDelegate];
});
while (YES) {
BOOL fetched = [self fetchImages];