Clear pointers when threads are shut down
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
a7363d0556
commit
6144f9b419
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue