diff --git a/internal/platform/implementation/windows/thread_pool.cc b/internal/platform/implementation/windows/thread_pool.cc index fe2729a0..e32511ad 100644 --- a/internal/platform/implementation/windows/thread_pool.cc +++ b/internal/platform/implementation/windows/thread_pool.cc @@ -16,7 +16,6 @@ #include -#include #include #include @@ -24,7 +23,6 @@ #include "absl/synchronization/mutex.h" #include "internal/platform/logging.h" #include "internal/platform/runnable.h" -#include "winrt/base.h" namespace nearby { namespace windows { @@ -159,16 +157,7 @@ void ThreadPool::RunNextTask() { return; } - try { - task(); - } catch (std::exception exception) { - NEARBY_LOGS(ERROR) << __func__ << ": Exception: " << exception.what(); - } catch (const winrt::hresult_error& error) { - NEARBY_LOGS(ERROR) << __func__ << ": WinRT exception: " << error.code() - << ": " << winrt::to_string(error.message()); - } catch (...) { - NEARBY_LOGS(ERROR) << __func__ << ": Unknown exeption."; - } + task(); } } // namespace windows