Small refactoring

This commit is contained in:
DarthAffe committed 2022-11-05 21:11:17 +01:00
1 parent 2c71196fce
commit ca8bc67f03
1 file changed
+1 -1
+1 -1
View File
@@ -52,7 +52,7 @@ public class E131UpdateQueue : UpdateQueue
protected override void OnUpdate(object? sender, CustomUpdateData customData)
{
if (customData[CustomUpdateDataIndex.HEARTBEAT] as bool? == true)
if (customData[CustomUpdateDataIndex.HEARTBEAT] as bool? ?? false)
Update(Array.Empty<(object key, Color color)>());
else
base.OnUpdate(sender, customData);