diff options
author | NIIBE Yutaka <[email protected]> | 2012-11-22 07:04:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-12-04 09:48:20 +0000 |
commit | baf7b09e124f9eb4ca4b8ee02474ee7710a95a40 (patch) | |
tree | 34f11005a3d91971c66a27617d2e3cd0a1767cd8 /scd/command.c | |
parent | Refresh sample keys (diff) | |
download | gnupg-baf7b09e124f9eb4ca4b8ee02474ee7710a95a40.tar.gz gnupg-baf7b09e124f9eb4ca4b8ee02474ee7710a95a40.zip |
Don't keep opening unavailable card reader.
* scd/command.c (update_reader_status_file): Don't call
get_current_reader.
--
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.
Diffstat (limited to '')
-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 17da5b7ae..932db6ca1 100644 --- a/scd/command.c +++ b/scd/command.c @@ -2282,11 +2282,6 @@ update_reader_status_file (int set_card_removed_flag) int idx; unsigned int status, changed; - /* Make sure that a reader has been opened. Like get_current_reader, - this part of the code assumes that there is only one reader. */ - if (!vreader_table[0].valid) - (void)get_current_reader (); - /* 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 |