[Pcsclite-cvs-commit] r2129 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Wed Aug 9 07:16:12 UTC 2006


Author: rousseau
Date: 2006-08-09 07:16:11 +0000 (Wed, 09 Aug 2006)
New Revision: 2129

Modified:
   trunk/PCSC/src/hotplug_libusb.c
Log:
Revert patch in revision 2127. The problematic to try a second driver
start if the first one fails has to be in the driver itself, not in
pcscd.


Modified: trunk/PCSC/src/hotplug_libusb.c
===================================================================
--- trunk/PCSC/src/hotplug_libusb.c	2006-08-08 15:05:57 UTC (rev 2128)
+++ trunk/PCSC/src/hotplug_libusb.c	2006-08-09 07:16:11 UTC (rev 2129)
@@ -454,18 +454,8 @@
 		driver->libraryPath, deviceName) == SCARD_S_SUCCESS)
 		readerTracker[i].status = READER_PRESENT;
 	else
-	{
-		/* remove it */
-		RFRemoveReader(readerTracker[i].fullName, PCSCLITE_HP_BASE_PORT + i);
+		readerTracker[i].status = READER_FAILED;
 
-		/* try a second start */
-		if (RFAddReader(readerTracker[i].fullName, PCSCLITE_HP_BASE_PORT + i,
-			driver->libraryPath, deviceName) == SCARD_S_SUCCESS)
-			readerTracker[i].status = READER_PRESENT;
-		else
-			readerTracker[i].status = READER_FAILED;
-	}
-
 	SYS_MutexUnLock(&usbNotifierMutex);
 
 	return 1;




More information about the Pcsclite-cvs-commit mailing list