Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call hid_init() at import time, to avoid macOS crash
fixes trezor#142 fixes trezor#148 note trezor#148 (comment) : > HIDAPI on macOS has an additional issue regarding thread-safety. > I did encountered it in my project(s) but didn't have enough time to gather info/find a root cause. > Looks like on macOS hid_init/hid_exit needs to be called in the same thread, > which is an additional restriction compared to other platforms.
- Loading branch information