1
0
Fork 0

only send 3 terminated universe frames

This commit is contained in:
Kevin Matz 2022-12-06 14:52:06 -05:00
parent 8a2e838916
commit b07d505bce
1 changed files with 2 additions and 2 deletions

View File

@ -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
}