check for vicc presence and return immediately

This commit is contained in:
Frank Morgner
2013-06-26 23:22:49 +02:00
parent fa0b3bae28
commit 46d0132856

View File

@@ -249,8 +249,8 @@ int vicc_present(struct vicc_ctx *ctx) {
unsigned char *atr = NULL;
if (ctx->client_sock <= 0)
/* Wait up to one microsecond. */
ctx->client_sock = waitforclient(ctx->server_sock, 0, 1);
/* return immediately */
ctx->client_sock = waitforclient(ctx->server_sock, 0, 0);
if (ctx->client_sock < 0)
return -1;