aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scd/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scd/command.c b/scd/command.c
index 451a92200..e35579edc 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -2315,7 +2315,10 @@ update_reader_status_file (int set_card_removed_flag)
/* Set the card removed flag for all current sessions. */
if (ss->any && ss->status == 0 && set_card_removed_flag)
- update_card_removed (idx, 1);
+ {
+ apdu_close_reader (ss->slot);
+ update_card_removed (ss->slot, 1);
+ }
ss->any = 1;