Fixed bug in M17 modulator and demodulator making them not releasing their audio paths on termination thus locking up the thread on M17 mode re-entering.

md1702
Silvano Seva 2022-10-01 11:21:50 +02:00
rodzic 12932db37c
commit 9d021b7557
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -189,6 +189,7 @@ void M17Demodulator::init()
void M17Demodulator::terminate()
{
// Ensure proper termination of baseband sampling
audioPath_release(basebandPath);
inputStream_stop(basebandId);
// Delete the buffers and deallocate memory.

Wyświetl plik

@ -67,6 +67,9 @@ void M17Modulator::terminate()
txRunning = false;
}
// Always ensure that outgoing audio path is closed
audioPath_release(outPath);
// Deallocate memory.
baseband_buffer.reset();
}