await in try/catch

This commit is contained in:
mertalev 2025-07-21 13:29:50 +03:00
parent edb024e88c
commit 4d4a5b6be4
No known key found for this signature in database
GPG Key ID: DF6ABC77AAD98C95

View File

@ -260,7 +260,7 @@ class _ThumbnailState extends State<Thumbnail> {
log.info(
'Retrieved local image $localId in ${stopwatch.elapsedMilliseconds.toStringAsFixed(2)} ms',
);
return ImmutableBuffer.fromUint8List(pointer.asTypedList(size));
return await ImmutableBuffer.fromUint8List(pointer.asTypedList(size));
} catch (e) {
log.warning('Failed to retrieve local image $localId: $e');
} finally {