Skip to content

Commit

Permalink
check validity of message drop event callback before actually calling…
Browse files Browse the repository at this point in the history
… it. (#1346) (#1355)

Co-authored-by: Rex Schilasky <49162693+rex-schilasky@users.noreply.github.com>
  • Loading branch information
FlorianReimold and rex-schilasky authored Feb 7, 2024
1 parent 9cf66d5 commit e78e1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecal/core/src/readwrite/ecal_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ namespace eCAL
{
const std::lock_guard<std::mutex> lock(m_event_callback_map_sync);
auto citer = m_event_callback_map.find(sub_event_dropped);
if (citer != m_event_callback_map.end())
if (citer != m_event_callback_map.end() && citer->second)
{
SSubEventCallbackData data;
data.type = sub_event_dropped;
Expand Down

0 comments on commit e78e1b2

Please sign in to comment.