Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix event listener registration (bind this) and removal in web-hid-wrapper.ts #103

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

loucadufault
Copy link
Contributor

@loucadufault loucadufault commented Jul 29, 2024

Not sure how/if this was working previously. Issues fixed:

  • registered event listeners should be bound to this
  • removed event listeners should be the same function references as were registered
  • remove 'error' event listener on close to avoid memory leak

@nytamin nytamin self-requested a review July 29, 2024 16:40
@nytamin nytamin merged commit 0d44da7 into SuperFlyTV:master Aug 12, 2024
6 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