Don't fail while enumerating readers, when a reader returns an error (just log).
This is useful with hubs that can power down individual ports: when a port is powered down, the reader is still visible to pcsc, but connecting to it returns an error.
This commit is contained in:
parent
9e9cddc225
commit
a7fb5b2b2c
1 changed files with 6 additions and 3 deletions
|
@ -100,9 +100,12 @@ impl PcscClient {
|
||||||
continue; // try next reader
|
continue; // try next reader
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
return Err(SmartcardError::SmartCardConnectionError(
|
log::warn!(
|
||||||
err.to_string(),
|
"Error connecting to card in reader: {:x?}",
|
||||||
));
|
err
|
||||||
|
);
|
||||||
|
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue