[Pcsclite-cvs-commit] r3158 - /trunk/PCSC/src/eventhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Oct 10 12:47:59 UTC 2008
Author: rousseau
Date: Fri Oct 10 12:47:59 2008
New Revision: 3158
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3158
Log:
EHStatusHandlerThread(): remove commented and never used code to restart
a reader after 10 IFDStatusICC() errors
Modified:
trunk/PCSC/src/eventhandler.c
Modified: trunk/PCSC/src/eventhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.c?rev=3158&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.c (original)
+++ trunk/PCSC/src/eventhandler.c Fri Oct 10 12:47:59 2008
@@ -335,7 +335,6 @@
/*
* Set error status on this reader while errors occur
*/
-
rContext->readerState->readerState &= ~SCARD_ABSENT;
rContext->readerState->readerState &= ~SCARD_PRESENT;
rContext->readerState->readerState &= ~SCARD_POWERED;
@@ -349,26 +348,6 @@
dwCurrentState = SCARD_UNKNOWN;
StatSynchronize(rContext->readerState);
-
- /*
- * This code causes race conditions on G4's with USB
- * insertion
- */
- /*
- * dwErrorCount += 1; SYS_Sleep(1);
- */
- /*
- * After 10 seconds of errors, try to reinitialize the reader
- * This sometimes helps bring readers out of *crazy* states.
- */
- /*
- * if ( dwErrorCount == 10 ) { RFUnInitializeReader( rContext
- * ); RFInitializeReader( rContext ); dwErrorCount = 0; }
- */
-
- /*
- * End of race condition code block
- */
}
if (dwStatus & SCARD_ABSENT)
@@ -468,7 +447,6 @@
/*
* Sharing may change w/o an event pass it on
*/
-
if (dwReaderSharing != rContext->dwContexts)
{
dwReaderSharing = rContext->dwContexts;
More information about the Pcsclite-cvs-commit
mailing list