1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00

Fixed use after dispose for novation devices

This commit is contained in:
Darth Affe 2020-03-03 16:00:36 +01:00
parent 4f72ff117c
commit bc9ff70975

View File

@ -78,11 +78,11 @@ namespace RGB.NET.Devices.Novation
/// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}.Dispose" /> /// <inheritdoc cref="AbstractRGBDevice{TDeviceInfo}.Dispose" />
public override void Dispose() public override void Dispose()
{ {
Reset();
try { UpdateQueue?.Dispose(); } try { UpdateQueue?.Dispose(); }
catch { /* at least we tried */ } catch { /* at least we tried */ }
Reset();
base.Dispose(); base.Dispose();
} }