diff --git a/Src/Model3/Model3.cpp b/Src/Model3/Model3.cpp index 9ebb2c8..134e767 100644 --- a/Src/Model3/Model3.cpp +++ b/Src/Model3/Model3.cpp @@ -2055,10 +2055,13 @@ void CModel3::StopThreads(void) if (!startedThreads) return; - // Remove callback + // If sound board not sync'd then remove callback if (!syncSndBrdThread) SetAudioCallback(NULL, NULL); - + + // Pause threads so that can safely delete thread objects + PauseThreads(); + DeleteThreadObjects(); startedThreads = false; }