Skip to content

Commit

Permalink
[core] remove callbacks before stopping tcp protocol layer (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky authored Aug 6, 2024
1 parent 9e8ecbb commit 6886ee4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ecal/core/src/service/ecal_service_server_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ namespace eCAL
{
if (!m_created) return(false);

if (m_tcp_server_v0)
m_tcp_server_v0->stop();

if (m_tcp_server_v1)
m_tcp_server_v1->stop();

// reset method callback map
{
std::lock_guard<std::mutex> const lock(m_method_map_sync);
Expand All @@ -153,6 +147,12 @@ namespace eCAL
m_event_callback_map.clear();
}

if (m_tcp_server_v0)
m_tcp_server_v0->stop();

if (m_tcp_server_v1)
m_tcp_server_v1->stop();

// mark as no more created
m_created = false;

Expand Down

0 comments on commit 6886ee4

Please sign in to comment.