We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bb7e2a commit 63980a0Copy full SHA for 63980a0
1 file changed
src/main/java/org/eclipse/keyple/plugin/pcsc/PcscReaderAdapter.java
@@ -562,13 +562,15 @@ private void doWaitForCardRemoval(boolean allowPolling)
562
waitForCardRemovalStandard();
563
}
564
} finally {
565
- try {
566
- disconnect();
567
- } catch (Exception e) {
568
- logger.warn(
569
- "[readerExt={}] Failed to disconnect card during card removal sequence [reason={}]",
570
- name,
571
- e.getMessage());
+ if (loopWaitCardRemoval.get()) {
+ try {
+ disconnect();
+ } catch (Exception e) {
+ logger.warn(
+ "[readerExt={}] Failed to disconnect card during card removal sequence [reason={}]",
+ name,
572
+ e.getMessage());
573
+ }
574
575
576
if (logger.isTraceEnabled()) {
0 commit comments