1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-01 11:16:16 +00:00

Attempts to ensure clean shutdown.

This commit is contained in:
Thomas Harte
2020-06-14 23:38:44 -04:00
parent d08ffd6c8b
commit ac732e2e7b
3 changed files with 9 additions and 9 deletions

View File

@@ -66,9 +66,7 @@ MainWindow::~MainWindow() {
// Stop the audio output, and its thread.
if(audioOutput) {
audioOutput->stop();
audioThread.quit();
while(audioThread.isRunning());
audioThread.stop();
}
// Stop the timer.