diff --git a/lib/widgets/mxc_image.dart b/lib/widgets/mxc_image.dart index 1d5625998..230f3eb09 100644 --- a/lib/widgets/mxc_image.dart +++ b/lib/widgets/mxc_image.dart @@ -1,3 +1,4 @@ +import 'dart:io'; import 'dart:typed_data'; import 'package:flutter/material.dart'; @@ -110,7 +111,7 @@ class _MxcImageState extends State { } try { await _load(); - } catch (_) { + } on IOException catch (_) { if (!mounted) return; await Future.delayed(widget.retryDuration); _tryLoad(_);