1
0
Fork 0

only reset the sequence number for received terminated universes

This commit is contained in:
Kevin Matz 2022-12-06 14:51:43 -05:00
parent 1cad61ffc7
commit 8a2e838916
2 changed files with 3 additions and 5 deletions

View File

@ -227,6 +227,9 @@ void Receiver::dataFrameHandler(ACN::PDU::Message<DATA::Pdu> frame) {
{
/// Set the universe's status to TERMINATED.
universe->setStatus(Universe::sACN_TERMINATED);
/// Resetting the sequencing on terminated universes results in faster reaquision
/// from the same source without waiting for the sequence to realign.
universe->provenance()->sequence_number = 0;
/// Terminated universe may be deleted as sources.
/// The universe may keep itself, in a terminated state, for hold-last-look.
universes_[source->universe]->deleteSourceUniverse(*source);

View File

@ -298,11 +298,6 @@ void Universe::setStatus(uint8_t status)
// tx_control_mutex_.lock();
DMX::Universe::setStatus(status);
// tx_control_mutex_.unlock();
// Reset sequencing on terminated universes. Results in faster reaquision
// from the same source without waiting for the sequence to realign.
if (status == sACN_TERMINATED)
provenance_->sequence_number = 0;
}