Skip to content

Commit

Permalink
Transports/CommManager: Get m_transmission_requests reference, instea…
Browse files Browse the repository at this point in the history
…d of copy.
  • Loading branch information
luis109 committed Jul 18, 2024
1 parent 14ff6e5 commit 86bca14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Transports/CommManager/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ namespace Transports
if (msg->getDestinationEntity() != getEntityId())
return;

auto tr_list = m_router.getList();
std::map<uint16_t, IMC::TransmissionRequest*>& tr_list = m_router.getList();

if (tr_list.find(msg->req_id) != tr_list.end())
{
Expand Down Expand Up @@ -349,7 +349,7 @@ namespace Transports
if (msg->getSource() != getSystemId())
return;

auto tr_list = m_router.getList();
std::map<uint16_t, IMC::TransmissionRequest*>& tr_list = m_router.getList();

if (tr_list.find(msg->req_id) != tr_list.end())
{
Expand Down Expand Up @@ -399,7 +399,7 @@ namespace Transports
return;
}

auto tr_list = m_router.getList();
std::map<uint16_t, IMC::TransmissionRequest*>& tr_list = m_router.getList();

if (tr_list.find(msg->req_id) != tr_list.end())
{
Expand Down Expand Up @@ -617,7 +617,7 @@ namespace Transports
if (msg->getSource() != getSystemId())
return;

auto tr_list = m_router.getList();
std::map<uint16_t, IMC::TransmissionRequest*>& tr_list = m_router.getList();

if (tr_list.find(msg->req_id) != tr_list.end())
{
Expand Down

0 comments on commit 86bca14

Please sign in to comment.