Fix demodulator termination / thread lock

This commit is contained in:
Charles J. Cliffe
2015-01-11 20:26:51 -05:00
parent e7b22bd186
commit 2b6da304ef
5 changed files with 9 additions and 5 deletions
+1 -2
View File
@@ -421,13 +421,12 @@ void AudioThread::threadMain() {
}
#endif
std::cout << "Audio thread done." << std::endl;
if (threadQueueNotify != NULL) {
DemodulatorThreadCommand tCmd(DemodulatorThreadCommand::DEMOD_THREAD_CMD_AUDIO_TERMINATED);
tCmd.context = this;
threadQueueNotify->push(tCmd);
}
std::cout << "Audio thread done." << std::endl;
}
void AudioThread::terminate() {