FIXME: Don't issue SCardCancel unless the environment is known not to hang (part 1)

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4833 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2010-10-28 09:44:22 +00:00
parent 31b0a05aaf
commit 8156095b46
1 changed files with 2 additions and 1 deletions

View File

@ -291,8 +291,9 @@ CK_RV C_Finalize(CK_VOID_PTR pReserved)
/* cancel pending calls */
in_finalize = 1;
#ifdef PCSC_CANCEL_OK
sc_cancel(context);
#endif
/* remove all cards from readers */
for (i=0; i < (int)sc_ctx_get_reader_count(context); i++)
card_removed(sc_ctx_get_reader(context, i));