[Pcsclite-git-commit] [pcsc-tools] 23/32: pcsc_scan: call stress() until it fails
Ludovic Rousseau
rousseau at moszumanska.debian.org
Thu May 4 15:44:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository pcsc-tools.
commit e7d2a419fe5ceb9090796c1cda12cc32fa2f0bc9
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sat Apr 8 17:47:51 2017 +0200
pcsc_scan: call stress() until it fails
Loop calling stress() until an error is reported:
- reader removed
- card removed
- else
---
pcsc_scan.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pcsc_scan.c b/pcsc_scan.c
index 66d6d6c..c1e8582 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -561,7 +561,10 @@ get_readers:
if (rgReaderStates_t[current_reader].dwEventState &
SCARD_STATE_PRESENT && stress_card)
{
- stress(hContext, rgReaderStates_t[current_reader].szReader);
+ do
+ {
+ rv = stress(hContext, rgReaderStates_t[current_reader].szReader);
+ } while (SCARD_S_SUCCESS == rv);
}
} /* for */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git
More information about the Pcsclite-cvs-commit
mailing list