<div dir="ltr">Hello,<br><div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-18 3:58 GMT+02:00 Ben Mehlman <span dir="ltr"><<a href="mailto:ben.mehlman@sweetsams.com" target="_blank">ben.mehlman@sweetsams.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><br></div>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.<br><br></div>I tried recreating the CardRequest but that wasn't sufficient to recreate the connection to pcscd.<br></div>Is there a correct way to handle this?<br></div></div></div></blockquote><div><br></div><div>You need to re-establish a connection to the server using SCardEstablishContext().<br></div><div>That may not be easy to do from the high level API.<br></div></div><br></div><div class="gmail_extra">Why is pcscd shut down?<br><br></div><div class="gmail_extra">Bye<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div></div>