diff --git a/src/pcsc.hxx b/src/pcsc.hxx index da92c2e..3ecb042 100644 --- a/src/pcsc.hxx +++ b/src/pcsc.hxx @@ -242,7 +242,7 @@ namespace pcsc { CRYPTOLOG("Disconnect Reader"); _state = SCardDisconnect(_id, SCARD_RESET_CARD); if (!std::uncaught_exception()) - _connection->check("disconnect smartcard"); + _connection->check(_state, "disconnect smartcard"); } //! Get reader status.