diff options
author | NIIBE Yutaka <[email protected]> | 2012-11-22 07:04:51 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2012-12-07 01:13:05 +0000 |
commit | 9afd2bb7fb9067eb8c753a5e5f672a36e93b2474 (patch) | |
tree | 3fa2f611efc8b9abdd501e533740956ecfc843b3 | |
parent | Update sample keys (diff) | |
download | gnupg-9afd2bb7fb9067eb8c753a5e5f672a36e93b2474.tar.gz gnupg-9afd2bb7fb9067eb8c753a5e5f672a36e93b2474.zip |
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.
-rw-r--r-- | scd/command.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scd/command.c b/scd/command.c index 3ce4a5709..da11e881f 100644 --- a/scd/command.c +++ b/scd/command.c @@ -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 |