1
0
Fork 0

use initializer list to create sender

This commit is contained in:
Kevin Matz 2022-12-09 09:25:29 -05:00
parent 4d7413b949
commit 4fa5a2794a
1 changed files with 1 additions and 7 deletions

View File

@ -36,13 +36,9 @@ Universe::Universe(Source* src)
, metadata_(std::make_shared<DATA::data_header>())
, active_data_slots_(1) // start code
, sync_sequence_(0)
, sender_(nullptr)
, sender_(src ? new UniverseSender(src, this) : nullptr)
{
destination.type = ACN::SDT::SDT_ADDR_NULL;
// create a sending thread
if (src)
sender_ = new UniverseSender(src, this);
}
@ -255,9 +251,7 @@ void Universe::setStatus(uint8_t status)
if (status == RX_TIMEOUT)
status = sACN_TERMINATED;
// tx_control_mutex_.lock();
DMX::Universe::setStatus(status);
// tx_control_mutex_.unlock();
}