Re: How to recover from momentary loss of pcscd connection in psycard.
Ludovic Rousseau <[email protected]> Tue, 18 Oct 2016 09:39:09 +0200
| Newsgroups | gmane.comp.lib.muscle |
|---|---|
| Message-ID | <CAGstE8BPCw-qdJfcfK83dF=A=6=QKsandtCL2vgdTDpYX6AfpQ@mail.gmail.com> |
Hello, 2016-10-18 3:58 GMT+02:00 Ben Mehlman <[email protected]>: > > Using the higher level classes of pyscard (CardRequest, CardService).. if > pcscd is shut down temporarily, it results in a ListReadersException. I > would like to catch this exception, retry, and recover from it when pcscd > becomes available again. > > I tried recreating the CardRequest but that wasn't sufficient to recreate > the connection to pcscd. > Is there a correct way to handle this? > You need to re-establish a connection to the server using SCardEstablishContext(). That may not be easy to do from the high level API. Why is pcscd shut down? Bye -- Dr. Ludovic Rousseau _______________________________________________ Pcsclite-muscle mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle