diff --git a/src/jaegertracing/reporters/RemoteReporter.cpp b/src/jaegertracing/reporters/RemoteReporter.cpp index 191c6058..e26c6268 100644 --- a/src/jaegertracing/reporters/RemoteReporter.cpp +++ b/src/jaegertracing/reporters/RemoteReporter.cpp @@ -69,10 +69,10 @@ void RemoteReporter::close() noexcept return; } _running = false; - flush(); } _cv.notify_one(); _thread.join(); + flush(); } catch (...) { utils::ErrorUtil::logError(_logger, "Failed in Reporter::close"); }