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 -1
View File
@@ -31,7 +31,7 @@ void DemodulatorWorkerThread::threadMain() {
done = commandQueue->empty();
}
if (filterChanged) {
if (filterChanged && !terminated) {
DemodulatorWorkerThreadResult result(DemodulatorWorkerThreadResult::DEMOD_WORKER_THREAD_RESULT_FILTERS);
result.iqResampleRatio = (double) (filterCommand.bandwidth) / (double) filterCommand.sampleRate;