From 6144f9b4195bd5816a3b3b8bb5171828ec489176 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sun, 11 Aug 2024 15:21:30 +0200 Subject: [PATCH] Clear pointers when threads are shut down Signed-off-by: Alexander Borsuk --- platform/platform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/platform.cpp b/platform/platform.cpp index 1026368300..c398283fc4 100644 --- a/platform/platform.cpp +++ b/platform/platform.cpp @@ -352,8 +352,11 @@ void Platform::ShutdownThreads() m_batteryTracker.UnsubscribeAll(); m_networkThread->ShutdownAndJoin(); + m_networkThread.reset(); m_fileThread->ShutdownAndJoin(); + m_fileThread.reset(); m_backgroundThread->ShutdownAndJoin(); + m_backgroundThread.reset(); } void Platform::RunThreads() -- 2.45.3