Skip to content

Commit

Permalink
Fix precache logic
Browse files Browse the repository at this point in the history
The pair of _processingSerSet.add() and _processingSerSet.remove()
should not be interrupted.
  • Loading branch information
wh201906 authored and honjow committed Nov 25, 2023
1 parent 8be46e7 commit 1404203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pages/image_view/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ class GalleryPara {

String _url = '';
if (_image.imageUrl?.isEmpty ?? true) {
_processingSerSet.add(_ser);
final String _href = imageMap[_ser]?.href ?? '';

if (showKey == null) {
logger.d('showKey is null, skip precache');
continue;
}

_processingSerSet.add(_ser);
final String _href = imageMap[_ser]?.href ?? '';

// paraImageLageInfoFromHtml
// final GalleryImage? _imageFetch = await fetchImageInfo(_href);
final GalleryImage? _imageFetch =
Expand Down

0 comments on commit 1404203

Please sign in to comment.