Commit e7d2a419 authored by Ludovic Rousseau's avatar Ludovic Rousseau

pcsc_scan: call stress() until it fails

Loop calling stress() until an error is reported:
- reader removed
- card removed
- else
parent 08452ba1
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment