diff --git a/lib/ui/card_reader_page.dart b/lib/ui/card_reader_page.dart index 199059f..274c144 100644 --- a/lib/ui/card_reader_page.dart +++ b/lib/ui/card_reader_page.dart @@ -91,9 +91,11 @@ class _CardReaderPageState extends State { setStatus(ReaderOkStatus.waiting); } } catch (e) { - /* FIXME: make sure not to end up in a busy loop */ if (!mounted) return; _showError(); + /* TODO: request a retry from the user instead? */ + await Future.delayed(const Duration(seconds: 1)); + if (!mounted) return; _poll(); } }