Skip to content

Conversation

sizeofvoid
Copy link
Contributor

Do not use handle if libusb_hotplug_register_callback fails

On OpenBSD USB listener callback fails. When this happens, opening and closing a DB takes a very long time. Maybe through handleUsbEvents()

Testing strategy

Test wit yubikey on OpenBSD -current

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

bob-beck pushed a commit to openbsd/ports that referenced this pull request Jun 9, 2024
On some system, libusb_hotplug_register_callback fails,
resulting in long open and closed DB tasks when a
YubiKey is involved.

I have not found out why libusb_hotplug_register_callback fails
which is clear the root cause. However, I had to realize that
keepassxc uses "handle" even if it is not valid.

keepassxreboot/keepassxc#10872

Tested by gonzalo@, ok kn@
Do not use `handle` if `libusb_hotplug_register_callback` fails
@droidmonkey droidmonkey added this to the v2.7.10 milestone Jun 22, 2024
@droidmonkey droidmonkey merged commit 34808a2 into keepassxreboot:develop Jun 22, 2024
@droidmonkey droidmonkey added the pr: backported Pull request backported to previous release label Jul 1, 2024
@phoerious phoerious added pr: bugfix Pull request fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Hardware Keys pr: backported Pull request backported to previous release pr: bugfix Pull request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants