src: fix for OSs not supporting PnP Notification

- Instead of waiting for the notification, it will poll every second for a new
  card reader.
- Thanks to Ludovic Rousseau for the help. See:
  https://github.com/santigimeno/node-pcsclite/issues/14
This commit is contained in:
Santiago Gimeno
2014-09-16 14:25:26 +02:00
parent f85250beb0
commit 5b10f8519c
2 changed files with 32 additions and 8 deletions

View File

@@ -49,8 +49,10 @@ class PCSCLite: public node::ObjectWrap {
private:
SCARDCONTEXT m_card_context;
SCARD_READERSTATE m_card_reader_state;
pthread_t m_status_thread;
pthread_mutex_t m_mutex;
bool m_pnp;
};
#endif /* PCSCLITE_H */