[PATCH 2/4] CKYCardContext_WaitForStatusChange: timeout is success

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/libckyapplet/cky_card.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libckyapplet/cky_card.c b/src/libckyapplet/cky_card.c
index 325fe6a..2817c0f 100644
--- a/src/libckyapplet/cky_card.c
+++ b/src/libckyapplet/cky_card.c
@@ -848,7 +848,7 @@ CKYCardContext_WaitForStatusChange(CKYCardContext *ctx,
     }
     rv = ctx->scard->SCardGetStatusChange(ctx->context, timeout, 
 							readers, readerCount);
-    if (rv != SCARD_S_SUCCESS) {
+    if (rv != SCARD_S_SUCCESS && rv != SCARD_E_TIMEOUT) {
 	if ((rv == SCARD_E_NO_SERVICE) || (rv == SCARD_E_SERVICE_STOPPED)) {
 	    /* if we were stopped, don't reuse the old context, 
 	     * pcsc-lite hangs */
-- 
1.7.9.3

_______________________________________________
Coolkey-devel mailing list
Coolkey-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/coolkey-devel


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Women]

  Powered by Linux