CardAndTerminalManager assumes that subsequent calls to CardTerminals.list()
return the same CardTerminal objects every time. As far as I can tell from the
smartcardio API documentation, this is not guaranteed. In fact, the
jnasmartcardio implementation returns new objects every time.
The consequence is that CardAndTerminalManager will trigger
terminalsDetached/terminalsAttached and cardsRemoved/cardsInserted events for
every terminal and card present during each iteration.
At first sight, it looks relatively easy to fix, by using the CardTerminal name
instead of the object to identity the terminals.
Original issue reported on code.google.com by bartcorn...@gmail.com on 16 Feb 2015 at 7:41
Original issue reported on code.google.com by
bartcorn...@gmail.com
on 16 Feb 2015 at 7:41