DarthAffe / RGB.NET

The one-stop SDK for RGB-peripherals

Home Page:http://lib.arge.be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AbstractRGBDeviceProvider leaves behind old update triggers on Dispose

RobertBeekman opened this issue · comments

protected virtual void Reset()
{
foreach (IDeviceUpdateTrigger updateTrigger in UpdateTriggers.Values)
updateTrigger.Dispose();
Devices = Enumerable.Empty<IRGBDevice>();
IsInitialized = false;
}

After Dispose UpdateTriggers is not empty, causing old triggers to start updating again next time the device provider is added to a surface.

For now this is considered to be not a bug.