Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCardCancel(): return SCARD_S_SUCCESS even if the client already fini…
…shed In some cases SCardCancel() is called exactly at the same time SCardGetStatusChange() exits with SCARD_E_TIMEOUT. In that case the SCardGetStatusChange() client disapears in the middle of SCardCancel() processing. If the client is found but can't be contacted then we return SCARD_S_SUCCESS instead of SCARD_E_INVALID_HANDLE. Thanks to Jakub Janků for the bug report Closes: #160 "Concurrency issue with SCardCancel and SCardGetStatusChange timeout #160"
- Loading branch information