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()