1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-22 14:57:02 +01:00

(do_close_reader): Don't do a reset before close.

Some folks reported that it makes the SCR335 hang less often.
Look at the source on how to re-enable it.
This commit is contained in:
Werner Koch 2005-05-07 15:22:01 +00:00
parent 89c844bd3a
commit 0ab01480ed
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-05-07 Werner Koch <wk@g10code.com>
* ccid-driver.c (do_close_reader): Don't do a reset before close.
Some folks reported that it makes the SCR335 hang less often.
Look at the source on how to re-enable it.
2005-05-06 David Shaw <dshaw@jabberwocky.com> 2005-05-06 David Shaw <dshaw@jabberwocky.com>
* main.h, keygen.c (parse_expire_string, ask_expire_interval), * main.h, keygen.c (parse_expire_string, ask_expire_interval),

View File

@ -986,6 +986,7 @@ do_close_reader (ccid_driver_t handle)
} }
if (handle->idev) if (handle->idev)
{ {
if (getenv ("GNUPG_CCID_DRIVER_RESET_BEFORE_CLOSE"))
usb_reset (handle->idev); usb_reset (handle->idev);
usb_release_interface (handle->idev, handle->ifc_no); usb_release_interface (handle->idev, handle->ifc_no);
usb_close (handle->idev); usb_close (handle->idev);