diff options
Diffstat (limited to 'scd/apdu.c')
-rw-r--r-- | scd/apdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c index 46d18b14b..33951a2da 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -813,7 +813,7 @@ static int close_pcsc_reader (int slot) { (void)slot; - if (--pcsc.count == 0) + if (--pcsc.count == 0 && npth_mutex_trylock (&reader_table_lock) == 0) { int i; |