Skip to content

Commit

Permalink
Improve YubiKey/OnlyKey detection with more than 2 keys
Browse files Browse the repository at this point in the history
Add a small delay between key polling to let the hardware interface settle. Prevents invalid serial numbers from being pulled messing up the KeePassXC workflow.
  • Loading branch information
droidmonkey authored and lerignoux committed Jul 20, 2020
1 parent d88bc0a commit f51c24a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/keys/drivers/YubiKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ void YubiKey::findValidKeys()

ykds_free(st);
closeKey(yk_key);

Tools::wait(100);
} else {
// No more keys are connected
break;
Expand Down

0 comments on commit f51c24a

Please sign in to comment.