mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-04 22:07:40 +00:00
Update hidapi.net to properly Dispose() device
This commit is contained in:
parent
d362eb41f5
commit
49f86225cb
3 changed files with 11 additions and 9 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue