From a79e2dace819009864a3c1cb8c08cb0d67b4809e Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Wed, 11 Sep 2024 07:25:11 +0200 Subject: [PATCH] don't swallow context disposed exceptions --- lib/exception/platform_exception_decoder.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/exception/platform_exception_decoder.dart b/lib/exception/platform_exception_decoder.dart index 1a71812cd..f45f56da1 100644 --- a/lib/exception/platform_exception_decoder.dart +++ b/lib/exception/platform_exception_decoder.dart @@ -24,17 +24,11 @@ extension Decoder on PlatformException { bool _isApduException() => code == 'ApduException'; - bool _isContextDisposed() => code == 'ContextDisposedException'; - Exception decode() { if (_isCancellation()) { return CancellationException(); } - if (_isContextDisposed()) { - return CancellationException(); - } - if (message != null && _isApduException()) { final regExp = RegExp( r'^com.yubico.yubikit.core.smartcard.ApduException: APDU error: 0x(.*)$');