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

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Mon Jan 5 15:55:51 UTC 2015


Author: rousseau
Date: 2015-01-05 15:55:51 +0000 (Mon, 05 Jan 2015)
New Revision: 7078

Modified:
   trunk/PCSC/src/winscard_clnt.c
Log:
Do not call SCardCheckDaemonAvailability() twice

Doing a second call to SCardCheckDaemonAvailability() if the first one
failed is no more needed since revision 5384.


Modified: trunk/PCSC/src/winscard_clnt.c
===================================================================
--- trunk/PCSC/src/winscard_clnt.c	2015-01-05 15:53:51 UTC (rev 7077)
+++ trunk/PCSC/src/winscard_clnt.c	2015-01-05 15:55:51 UTC (rev 7078)
@@ -450,10 +450,6 @@
 
 	/* Check if the server is running */
 	rv = SCardCheckDaemonAvailability();
-	if (SCARD_E_INVALID_HANDLE == rv)
-		/* we reconnected to a daemon or we got called from a forked child */
-		rv = SCardCheckDaemonAvailability();
-
 	if (rv != SCARD_S_SUCCESS)
 		goto end;
 




More information about the Pcsclite-cvs-commit mailing list