From e49d808e1f02d8f01c60753022bc20664b215062 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 16 Jul 2009 15:54:59 +0000 Subject: Add code to better handle unplugging of a reader. --- scd/app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scd/app.c') diff --git a/scd/app.c b/scd/app.c index efaf9ec0b..a23c4a546 100644 --- a/scd/app.c +++ b/scd/app.c @@ -367,10 +367,10 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app) } /* For certain error codes, there is no need to try more. */ - if (gpg_err_code (err) == GPG_ERR_CARD_NOT_PRESENT) + if (gpg_err_code (err) == GPG_ERR_CARD_NOT_PRESENT + || gpg_err_code (err) == GPG_ERR_ENODEV) goto leave; - /* Figure out the application to use. */ err = gpg_error (GPG_ERR_NOT_FOUND); -- cgit v1.2.3