node-pcsclite icon indicating copy to clipboard operation
node-pcsclite copied to clipboard

pcsclite constructor stalls on a fresh windows 10 system what never had a card reader connected

Open hawajrambo opened this issue 4 years ago • 1 comments

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

hawajrambo avatar Oct 04 '20 03:10 hawajrambo

I suspect this is a generic issue with windows SCard API rather than this implementation

martinpaljak avatar Oct 05 '20 14:10 martinpaljak

See here for a potential fix

https://github.com/pokusew/node-pcsclite/pull/55

esskar avatar Sep 25 '24 17:09 esskar