set the operational status for sending universes
This commit is contained in:
parent
cf1df8d373
commit
6be8dfbebd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue