Skip to content

Commit

Permalink
adding the error message to log
Browse files Browse the repository at this point in the history
  • Loading branch information
AviaAv committed Dec 25, 2024
1 parent b5e1c7c commit 83a7d6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions third-party/realdds/src/dds-network-adapter-watcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ class network_adapter_watcher_singleton
~network_adapter_watcher_singleton()
{
_adapter_watcher.reset(); // signal the thread to finish
try {
try
{
if (_th.joinable())
_th.join();
}
catch (std::system_error&)
catch (std::system_error& e)
{
std::cerr << "join failed, thread might no longer be joinable";
LOG_ERROR("join failed, thread might no longer be joinable, Error:" << e.what());
}
}

Expand Down

0 comments on commit 83a7d6e

Please sign in to comment.