aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index f9a1a2da9..acca79949 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -3136,7 +3136,13 @@ apdu_close_reader (int slot)
return SW_HOST_NO_DRIVER;
sw = apdu_disconnect (slot);
if (sw)
- return sw;
+ {
+ /*
+ * When the reader/token was removed it might come here.
+ * It should go through to call CLOSE_READER even if we got an error.
+ */
+ log_debug ("apdu_close_reader => 0x%x (apdu_disconnect)\n", sw);
+ }
if (reader_table[slot].close_reader)
return reader_table[slot].close_reader (slot);
return SW_HOST_NOT_SUPPORTED;