mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
Cleaning up a bit.
This commit is contained in:
parent
59bf1577bf
commit
73a6e74b6d
1 changed files with 148 additions and 151 deletions
|
@ -422,11 +422,10 @@
|
|||
|
||||
- (void)fetchFeedDetail:(int)page withCallback:(void(^)())callback {
|
||||
NSString *theFeedDetailURL;
|
||||
NSLog(@"Fetch Feed in view: %@ (%@)", self, storiesCollection);
|
||||
|
||||
if (!storiesCollection.activeFeed) return;
|
||||
|
||||
if (callback || (!self.pageFetching && !self.pageFinished)) {
|
||||
if (!callback && (self.pageFetching || self.pageFinished)) return;
|
||||
|
||||
self.feedPage = page;
|
||||
self.pageFetching = YES;
|
||||
|
@ -501,7 +500,6 @@
|
|||
[request startAsynchronous];
|
||||
[requests addObject:request];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)loadOfflineStories {
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,
|
||||
|
@ -602,8 +600,8 @@
|
|||
#pragma mark River of News
|
||||
|
||||
- (void)fetchRiverPage:(int)page withCallback:(void(^)())callback {
|
||||
NSLog(@"Fetch River in view: %@ (%@)", self, storiesCollection);
|
||||
if (!self.pageFetching && !self.pageFinished) {
|
||||
if (self.pageFetching || self.pageFinished) return;
|
||||
|
||||
self.feedPage = page;
|
||||
self.pageFetching = YES;
|
||||
NSInteger storyCount = storiesCollection.storyCount;
|
||||
|
@ -690,7 +688,6 @@
|
|||
[request setTimeOutSeconds:30];
|
||||
[request startAsynchronous];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Processing Stories
|
||||
|
|
Loading…
Add table
Reference in a new issue