1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-10 13:04:23 +01:00

Don't keep opening unavailable card reader.

* scd/command.c (update_reader_status_file): Don't call
get_reader_slot.

--
This fix has a impact that the insertion of a card reader will not be
detected upon the insertion, but will be deferred until user tries to
access his card.
This commit is contained in:
NIIBE Yutaka 2012-11-22 16:04:51 +09:00
parent 2ee9fe4bc2
commit 9afd2bb7fb

View File

@ -2226,11 +2226,6 @@ update_reader_status_file (int set_card_removed_flag)
int idx;
unsigned int status, changed;
/* Make sure that the reader has been opened. Like get_reader_slot,
this part of the code assumes that there is only one reader. */
if (!slot_table[0].valid)
(void)get_reader_slot ();
/* Note, that we only try to get the status, because it does not
make sense to wait here for a operation to complete. If we are
busy working with a card, delays in the status file update should