Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Fix for too many requests
Browse files Browse the repository at this point in the history
  • Loading branch information
leonspok committed Jul 4, 2017
1 parent a50589a commit 3e47c8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Irvue Screensaver/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.6</string>
<string>1.0.7</string>
<key>CFBundleVersion</key>
<string>1060</string>
<string>1070</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 Leonspok. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
6 changes: 5 additions & 1 deletion Irvue Screensaver/Irvue_ScreensaverView.m
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ - (void)getNextImageSuccess:(void (^)(IVPhoto *photo))success failure:(void (^)(
}
} else {
[self saveToCachePhotos:photos fromSource:source];
[self getNextImageSuccess:success failure:failure];
IVPhoto *nextPhoto = [photos firstObject];
if (success) {
success(nextPhoto);
}
[self removeFromCachePhoto:nextPhoto fromSource:source];
}
} failure:failure];
} else {
Expand Down

0 comments on commit 3e47c8e

Please sign in to comment.