diff --git a/virtualsmartcard/src/vpcd/vpcd.c b/virtualsmartcard/src/vpcd/vpcd.c index db61a20..4f7e896 100644 --- a/virtualsmartcard/src/vpcd/vpcd.c +++ b/virtualsmartcard/src/vpcd/vpcd.c @@ -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;