Added exception-handling to all UpdateQueues

This commit is contained in:
DarthAffe committed 2023-03-05 16:34:01 +01:00
1 parent 6e313ea6a1
commit 37e4954583
18 files changed
+222 -97

No files matched your search

@@ -37,8 +37,15 @@ public abstract class MidiUpdateQueue : UpdateQueue
/// <inheritdoc />
protected override void Update(in ReadOnlySpan<(object key, Color color)> dataSet)
{
foreach ((object key, Color color) in dataSet)
SendMessage(CreateMessage(key, color));
try
{
foreach ((object key, Color color) in dataSet)
SendMessage(CreateMessage(key, color));
}
catch (Exception ex)
{
NovationDeviceProvider.Instance.Throw(ex, true);
}
}
/// <summary>