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:
parent
31b0a05aaf
commit
8156095b46
|
@ -291,8 +291,9 @@ CK_RV C_Finalize(CK_VOID_PTR pReserved)
|
||||||
|
|
||||||
/* cancel pending calls */
|
/* cancel pending calls */
|
||||||
in_finalize = 1;
|
in_finalize = 1;
|
||||||
|
#ifdef PCSC_CANCEL_OK
|
||||||
sc_cancel(context);
|
sc_cancel(context);
|
||||||
|
#endif
|
||||||
/* remove all cards from readers */
|
/* remove all cards from readers */
|
||||||
for (i=0; i < (int)sc_ctx_get_reader_count(context); i++)
|
for (i=0; i < (int)sc_ctx_get_reader_count(context); i++)
|
||||||
card_removed(sc_ctx_get_reader(context, i));
|
card_removed(sc_ctx_get_reader(context, i));
|
||||||
|
|
Loading…
Reference in New Issue