only send 3 terminated universe frames
This commit is contained in:
parent
8a2e838916
commit
b07d505bce
|
@ -450,7 +450,7 @@ void Universe::tx_loop_()
|
|||
// but it requires this mutex in the sleeping thread.
|
||||
std::mutex mtx;
|
||||
|
||||
while (enable || terminated_resend >= 0)
|
||||
while (enable || terminated_resend > 0)
|
||||
{
|
||||
// enforce strict minimum update times
|
||||
auto elapsed = std::chrono::system_clock::now() - last_updated_;
|
||||
|
@ -468,7 +468,7 @@ void Universe::tx_loop_()
|
|||
{
|
||||
provenance_->options.stream_terminated = true; // set the stream_terminated bit
|
||||
setStatus(sACN_TERMINATED); // note the changed operating status
|
||||
terminated_resend--; // stream_terminated must be sent 3 times
|
||||
--terminated_resend; // stream_terminated must be sent 3 times
|
||||
retransmission_count = 0; // stay throttled up through the termination sequence
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue