node-pcsclite
node-pcsclite copied to clipboard
pcsclite constructor stalls on a fresh windows 10 system what never had a card reader connected
Dear Developer,
This simple code stalls on the constructor of pcsclite on a fresh windwos 10 system, as long as no card reader is connected at least once.
It stalls even as started from an administrator privilegized command shell.
Once any reader is connected, the code works fine, even after reboot, even as strarted as non-admin user.
const pcsclite = require('@pokusew/pcsclite'); console.log('start'); const pcsc = pcsclite(); // <<< stalls here console.log('never reaches here');
Gabor
I suspect this is a generic issue with windows SCard API rather than this implementation
See here for a potential fix
https://github.com/pokusew/node-pcsclite/pull/55