Commit Graph
11 Commits
Author SHA1 Message Date
Santiago Gimeno c5f286dc4a Version 0.4.8 2016-01-22 10:18:45 +01:00
Santiago Gimeno 455afb1134 src: fix readers_name memory deletion
- After implementing SCARD_AUTOALLOCATE functionality for getting card
  readers name, the deletion of the allocated memory in
  `PCSCLite:: HandleReaderStatusChange` was not correctly migrated and
  was causing serious issues in `Windows`.

- See: https://github.com/santigimeno/node-pcsclite/issues/45.
2016-01-22 10:16:34 +01:00
Santiago Gimeno e424a8f644 Version 0.4.7 2015-12-30 11:12:15 +01:00
Santiago Gimeno b63f33c7a0 src: improve get_card_readers logic
- Use SCARD_AUTOALLOCATE if available. It avoids one extra call to
  SCardListReaders.
- If it's not available handle SCARD_E_INSUFFICIENT_BUFFER error by
  retrying get_card_readers.
2015-12-30 11:10:21 +01:00
Santiago Gimeno c3dcecdb63 Version 0.4.6 2015-12-22 15:15:17 +01:00
Santiago Gimeno 87d05a4e64 Version 0.4.5 2015-12-22 15:10:49 +01:00
Santiago Gimeno 1cd7143dc5 src: arm '_end' listener as soon as possible 2015-12-22 15:09:45 +01:00
Santiago Gimeno 57a74befbe src: improve reader status reporting logic
- Avoid sending twice the same status.
- Discard SCARD_E_UNKNOWN_READER error as it's happening when the reader is
  disconnected and the disconnection will be detected by the pcsclite.cpp
  status thread.
2015-12-22 15:08:35 +01:00
Santiago Gimeno 0bcf3d8436 src: multiple thread synchronization improvements
- Allow up to 4 the number of times SCardCancel is called before waiting for
  the status `thread` to finish.
- Destroy the mutexes and conds only in the destructors.
- Check that the thread handles are still valid before calling join on them.
2015-12-22 14:59:03 +01:00
Santiago Gimeno e19f31571a Version 0.4.2 2015-09-01 14:52:21 +02:00
Santiago Gimeno b373413669 src: fix double free crashes
- After upgrading to nan2 the buffers returned in some of the functions were
  being released because of Nan:NewBuffer. See:
  https://github.com/nodejs/nan/blob/master/doc/buffers.md#api_nan_new_buffer
2015-09-01 14:47:23 +02:00