diff --git a/Illumilib/System/LogitechLighting.cs b/Illumilib/System/LogitechLighting.cs index 77fe1d7..413427b 100644 --- a/Illumilib/System/LogitechLighting.cs +++ b/Illumilib/System/LogitechLighting.cs @@ -20,7 +20,11 @@ namespace Illumilib.System { public override void Dispose() { base.Dispose(); this.ClearBitmap(); - LogitechGsdk.LogiLedShutdown(); + try { + LogitechGsdk.LogiLedShutdown(); + } catch { + // ignored + } } public override void SetAllLighting(float r, float g, float b) { diff --git a/Illumilib/System/RazerLighting.cs b/Illumilib/System/RazerLighting.cs index 67fc3ce..618836a 100644 --- a/Illumilib/System/RazerLighting.cs +++ b/Illumilib/System/RazerLighting.cs @@ -22,7 +22,11 @@ namespace Illumilib.System { public override void Dispose() { base.Dispose(); - this.chroma?.UninitializeAsync(); + try { + this.chroma?.UninitializeAsync(); + } catch { + // ignored + } this.effectOutdated = true; }