mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-08-14 23:43:29 -04:00
Fix hang when the active demodulator goes out-of-bandwwidth by changing sample rate
This commit is contained in:
@@ -257,14 +257,17 @@ bool DemodulatorInstance::isActive() {
|
||||
}
|
||||
|
||||
void DemodulatorInstance::setActive(bool state) {
|
||||
|
||||
//always nudge the adio thread
|
||||
audioThread->setActive(state);
|
||||
|
||||
if (active && !state) {
|
||||
#if ENABLE_DIGITAL_LAB
|
||||
if (activeOutput) {
|
||||
activeOutput->Hide();
|
||||
}
|
||||
#endif
|
||||
audioThread->setActive(state);
|
||||
|
||||
|
||||
DemodulatorThread::releaseSquelchLock(this);
|
||||
|
||||
} else if (!active && state) {
|
||||
@@ -273,7 +276,6 @@ void DemodulatorInstance::setActive(bool state) {
|
||||
activeOutput->Show();
|
||||
}
|
||||
#endif
|
||||
audioThread->setActive(state);
|
||||
}
|
||||
if (!state) {
|
||||
tracking = false;
|
||||
|
||||
Reference in New Issue
Block a user