Skip to content

Commit

Permalink
fix abort in some cases with DDS
Browse files Browse the repository at this point in the history
  • Loading branch information
AviaAv committed Dec 24, 2024
1 parent e18af41 commit b5e1c7c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions third-party/realdds/src/dds-network-adapter-watcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,14 @@ class network_adapter_watcher_singleton
~network_adapter_watcher_singleton()
{
_adapter_watcher.reset(); // signal the thread to finish
if( _th.joinable() )
_th.join();
try {
if (_th.joinable())
_th.join();
}
catch (std::system_error&)
{
std::cerr << "join failed, thread might no longer be joinable";
}
}

void update_ips( ip_set * p_new_ips = nullptr, ip_set * p_old_ips = nullptr )
Expand Down

0 comments on commit b5e1c7c

Please sign in to comment.