Skip to content

Commit

Permalink
Ignore terminate packets when recording
Browse files Browse the repository at this point in the history
  • Loading branch information
HakanL committed Dec 18, 2024
1 parent a82a8b5 commit 9df6fdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Haukcode.sACN/SACNClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ protected override ValueTask<int> SendPacketAsync(SendData sendData, ReadOnlyMem
// Note that we're still using the memory from the pipeline here, the packet is not allocating its own DMX data byte array
if (packet != null)
{
if ((packet.FramingLayer as DataFramingLayer)?.Options.StreamTerminated == true)
// Ignore the terminate packets
return null;

var parsedObject = new ReceiveDataPacket
{
TimestampMS = timestampMS,
Expand Down

0 comments on commit 9df6fdb

Please sign in to comment.