[Pcsclite-cvs-commit] r6091 - /trunk/PCSC/src/spy/pcsc-spy.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Oct 31 14:10:18 UTC 2011


Author: rousseau
Date: Mon Oct 31 14:10:18 2011
New Revision: 6091

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6091
Log:
Exit in exception if the application exited in the middle of
SCardGetStatusChange() like it is the case for pcsc_scan

Modified:
    trunk/PCSC/src/spy/pcsc-spy.py

Modified: trunk/PCSC/src/spy/pcsc-spy.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/pcsc-spy.py?rev=6091&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy.py (original)
+++ trunk/PCSC/src/spy/pcsc-spy.py Mon Oct 31 14:10:18 2011
@@ -339,6 +339,8 @@
     def log_out2(self, header):
         """ generic log OUT parameter """
         data = self.queue.get()
+        if data == "EXIT":
+            raise Exception("Exit")
         if data.startswith("0x"):
             decimal = int(data, 16)
             self.log_out("%s %s (%d)" % (header, data, decimal))




More information about the Pcsclite-cvs-commit mailing list