Jinjinov / Usb.Events

Subscribe to the Inserted and Removed events to be notified when a USB drive is plugged in or unplugged, or when a USB device is connected or disconnected. Usb.Events is a .NET Standard 2.0 library and uses WMI on Windows, libudev on Linux and IOKit on macOS.
MIT License
95 stars 23 forks source link

Fixed memory leak and made changes to specify subsystem to filter on under Linux...fix formatting #2 #5

Closed maskimthedog closed 3 years ago

maskimthedog commented 3 years ago

Fixed memory leak and made changes to specify subsystem to filter on under Linux...needs refactoring.

Jinjinov commented 3 years ago

Thank you for submitting your changes.

As much as I would like to merge this version with my code, there are too many significant changes at once - GitHub indicates 536 added and 504 deleted lines. I have to fully understand each change before I can include it in my code.

I will gladly merge your changes, once the appropriate steps are taken:

There is also no need to create a new pull request each time you make a commit - explanation: https://github.community/t/do-i-need-to-make-a-new-pull-request-for-every-commit/13098