From 2d31b7e37eb85970bf153d2a07b48dca9bfa1257 Mon Sep 17 00:00:00 2001 From: Dennis Oberhoff Date: Sat, 4 May 2019 13:12:34 +0200 Subject: [PATCH] Fixed a issue with wrong user responses --- MusaicFM/MusaicFMView.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MusaicFM/MusaicFMView.m b/MusaicFM/MusaicFMView.m index 8630246..e00a93b 100644 --- a/MusaicFM/MusaicFMView.m +++ b/MusaicFM/MusaicFMView.m @@ -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)