mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
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.
This commit is contained in:
parent
b8eb2ab569
commit
baf7b09e12
@ -2282,11 +2282,6 @@ update_reader_status_file (int set_card_removed_flag)
|
|||||||
int idx;
|
int idx;
|
||||||
unsigned int status, changed;
|
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
|
/* 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
|
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
|
busy working with a card, delays in the status file update should
|
||||||
|
Loading…
x
Reference in New Issue
Block a user