Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize HIDAPI only when ref count reaches zero
Replace atexit.register() with weakref.finalize(), since that should guarantee that there are no remaining references to the module (and, thus, HIDAPI) when it runs. Related: #128 ("Fatal Python error: Segmentation fault on 0.11.0.post2")
- Loading branch information