Skip to content

Commit

Permalink
Merge pull request #375 from Aytackydln/logi-shutdown-on-dispose
Browse files Browse the repository at this point in the history
Call LogiLedShutdown on Logitech provider dispose
  • Loading branch information
DarthAffe authored Feb 12, 2024
2 parents 50e20a7 + b56a50a commit a4bd797
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RGB.NET.Devices.Logitech/LogitechDeviceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ protected override void Dispose(bool disposing)
try { _LogitechGSDK.LogiLedRestoreLighting(); }
catch { /* at least we tried */ }

try { _LogitechGSDK.LogiLedShutdown(); }
catch { /* at least we tried */ }

try { _LogitechGSDK.UnloadLogitechGSDK(); }
catch { /* at least we tried */ }

Expand Down

0 comments on commit a4bd797

Please sign in to comment.