Skip to content

Commit

Permalink
[Profiler] Prevent StackSamplerLoop from crashing at shutdown (#6238)
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie authored Nov 13, 2024
1 parent 973a84e commit 1faff1a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ bool StackSamplerLoop::StartImpl()
bool StackSamplerLoop::StopImpl()
{
_shutdownRequested = true;

if (_pLoopThread != nullptr)
{
try
{
_pLoopThread->join();
_pLoopThread.reset();
}
catch (const std::exception&)
{
Expand Down

0 comments on commit 1faff1a

Please sign in to comment.