Skip to content

Commit

Permalink
[iOS] Handle error when fetching thumbnail (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
maksg authored Jun 22, 2024
1 parent 98c363b commit 8491c36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/Classes/core/PMManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@ - (void)fetchThumb:(PHAsset *)asset option:(PMThumbLoadOption *)option resultHan
contentMode:option.contentMode
options:requestOptions
resultHandler:^(PMImage *result, NSDictionary *info) {
if (info[PHImageErrorKey]) {
[handler reply: nil];
[self notifySuccess:progressHandler];
return;
}

BOOL downloadFinished = [PMManager isDownloadFinish:info];

if (!downloadFinished) {
Expand Down

0 comments on commit 8491c36

Please sign in to comment.