Skip to content

Commit

Permalink
Fix stacksamplerloop clean up at shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie committed Nov 13, 2024
1 parent 78026dc commit 51e897a
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 51e897a

Please sign in to comment.