Fix bug with non-CCId devices (fixes #32).

This commit is contained in:
Dain Nilsson 2015-07-02 13:14:14 +02:00
parent 323fc4ae98
commit c017b73751
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
* Version 2.1.1 (unreleased)
** Added man pages.
** Fixed bug with non-CCID YubiKeys not displaying slot-bsed credentials.
* Version 2.1.0 (released 2015-06-26)
** Added setting to kill scdaemon on show, to release the device (GUI only).

View File

@ -117,6 +117,7 @@ class Controller(object):
if self.otp_supported and ((slot1 and not legacy_creds[0])
or (slot2 and not legacy_creds[1])):
if ccid_dev:
ccid_dev.close()
legacy = self.open_otp()
if legacy: