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

Errors when init() is called multiple times #7

Open
stevenroose opened this issue Oct 12, 2018 · 3 comments
Open

Errors when init() is called multiple times #7

stevenroose opened this issue Oct 12, 2018 · 3 comments

Comments

@stevenroose
Copy link

What happens when I'm using two separate packages that rely on hid? Both will have to call hid::init() and the latter one will fail.

@meh
Copy link
Owner

meh commented Oct 12, 2018

Nothing bad should happen if it's called twice.

@stevenroose
Copy link
Author

Looking at the code, it returns an error based on the INITIALIZED variable. Let me check when I'm at my laptop.

@stevenroose
Copy link
Author

It seems to be possible indeed. I'm very confused then. Could you perhaps explain the reason for the INITIALIZED variable?

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

No branches or pull requests

2 participants