- dont return error in detect_card_presence if there is no reader

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1014 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-04-16 08:33:37 +00:00
parent e04b90f5b2
commit 0c173451fc
1 changed files with 2 additions and 1 deletions

View File

@ -203,8 +203,9 @@ openct_reader_detect_card_presence(struct sc_reader *reader,
SC_FUNC_CALLED(reader->ctx, 1);
slot->flags = 0;
if (!data->h && !(data->h = ct_reader_connect(data->num)))
return SC_ERROR_CARD_NOT_PRESENT;
return 0;
if ((rc = ct_card_status(data->h, slot->id, &status)) < 0)
return SC_ERROR_TRANSMIT_FAILED;