Skip to content

Commit

Permalink
Set CurrentState before calling SCardGetStatusChange
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno committed Feb 18, 2015
1 parent 40ff718 commit df25f97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pcsclite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ void PCSCLite::HandlerFunction(void* arg) {
uv_async_send(&async_baton->async);

if (pcsclite->m_pnp) {
/* Set current status */
pcsclite->m_card_reader_state.dwCurrentState =
pcsclite->m_card_reader_state.dwEventState;
/* Start checking for status change */
result = SCardGetStatusChange(pcsclite->m_card_context,
INFINITE,
Expand Down

0 comments on commit df25f97

Please sign in to comment.