mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Fixed use after dispose for novation devices
This commit is contained in:
1 parent
4f72ff117c
commit
bc9ff70975
1 file changed
+2
-2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user