unsubscribe on STREAM_TERMINATED option

This commit is contained in:
Kevin Matz 2021-01-08 13:05:59 -05:00
parent bbc3cb5592
commit 92ce1d5d65
1 changed files with 12 additions and 0 deletions

View File

@ -128,6 +128,18 @@ void Receiver::dataPacketHandler(DATA::pdu_ptr frame) {
// TODO: do something with merging/priorty
// 6.2.6 E1.31 Data Packet: Options
// Stream_Terminated: Bit 6
// allow E1.31 sources to terminate transmission of a stream or of
// universe synchronization without waiting for a timeout to occur.
// Any property values in an E1.31 Data Packet containing this bit
// shall be ignored.
if (header->options & DATA::STREAM_TERMINATED) {
unsubscribe(header->universe);
return;
}
// PDU data will be a block of one DMP PDU
auto block = PDU::readBlock<DMP::Pdu>(frame->buffer());
if (frame->buffer()->fail())