1
0
Fork 0

set the operational status for sending universes

This commit is contained in:
Kevin Matz 2022-11-21 17:46:17 -05:00
parent cf1df8d373
commit 6be8dfbebd
1 changed files with 8 additions and 2 deletions

View File

@ -474,10 +474,16 @@ void Universe::tx_loop_()
enable = tx_enable_;
tx_control_mutex_.unlock();
// if shutting down, send stream_terminated in this last update
if (!enable)
if (enable)
{
if (active_data_slots)
setStatus(Status::DMX_ACTIVE);
}
else
{
provenance_->options.stream_terminated = true; // set the stream_terminated bit
setStatus(Status::sACN_TERMINATED); // note the changed operating status
terminated_resend--; // stream_terminated must be sent 3 times
retransmission_count = 0; // stay throttled up through the termination sequence
}