Skip to content

fix: 🐛 serialize USB access through a shared cached client#1

Merged
allansomensi merged 1 commit into
allansomensi:mainfrom
jonrichards:jr/fix-usb-session
Apr 28, 2026
Merged

fix: 🐛 serialize USB access through a shared cached client#1
allansomensi merged 1 commit into
allansomensi:mainfrom
jonrichards:jr/fix-usb-session

Conversation

@jonrichards

Copy link
Copy Markdown
Contributor

Summary

Fixes LIBUSB_ERROR_ACCESS errors caused by concurrent USB operations (preset polling, disconnect checks, user actions) racing to claim the interface. Routes all access through a shared cached DeviceClient guarded by a mutex, with cache invalidation on error so the next call reconnects cleanly.


Type of Change

  • Bug fix
  • New feature
  • Protocol research / documentation
  • Refactor
  • Chore / dependency update

Tested On

Device OS Result
Helix Floor macOS 26.4.1 Pass

Checklist

  • just lint-fix passes
  • cargo test passes
  • Documentation updated (if behavior or protocol changed)
  • No proprietary Line 6 code or assets included

@allansomensi

Copy link
Copy Markdown
Owner

LGTM! Thanks for the fix!

@allansomensi
allansomensi merged commit 364723a into allansomensi:main Apr 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants