pokusew / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
60 stars 55 forks source link

If the Smart Card service is unavailable, keep trying until it's available instead of quitting #5

Closed VojtechStep closed 7 years ago

VojtechStep commented 7 years ago

On Windows, the SCardSvr service is only on if there is a reader connected. If none is present, the service just shuts down. This fix makes the process keep refreshing the card context until it gets a valid handle, eg. until some reader is connected.

pokusew commented 7 years ago

Implmented in pokusew/node-pcsclite@11f939ff3214d5458890fe8c88c594f6f30784e8