Update hidapi.net to properly Dispose() device

This commit is contained in:
Kamil Trzciński 2022-12-16 10:36:23 +01:00
parent d362eb41f5
commit 49f86225cb
3 changed files with 11 additions and 9 deletions

View file

@ -26,8 +26,15 @@ namespace SteamController.Devices
stopwatch.Start();
}
~SteamController()
{
Dispose();
}
public void Dispose()
{
GC.SuppressFinalize(this);
using (neptuneDevice) { }
}
public bool Updated { get; private set; }