diff --git a/third-party/realdds/src/dds-network-adapter-watcher.cpp b/third-party/realdds/src/dds-network-adapter-watcher.cpp index 85078e7a92..3abd5e3306 100644 --- a/third-party/realdds/src/dds-network-adapter-watcher.cpp +++ b/third-party/realdds/src/dds-network-adapter-watcher.cpp @@ -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()); } }