Skip to content

Commit

Permalink
Fixed a issue with wrong user responses
Browse files Browse the repository at this point in the history
  • Loading branch information
obrhoff committed May 4, 2019
1 parent 6f19ac7 commit 2d31b7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MusaicFM/MusaicFMView.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ - (void)commonInit {
- (void)loadData {
__weak typeof(self) weakSelf = self;
void (^ done)(NSArray *artworks) = ^void (NSArray *new) {
if (new.count == 0) {
return;
}

NSInteger maximalCount = [weakSelf maximalCount];
NSMutableArray *artworks = [NSMutableArray arrayWithCapacity:maximalCount];
while (artworks.count < maximalCount)
Expand Down

0 comments on commit 2d31b7e

Please sign in to comment.