mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 18:57:11 +01:00
Bugfix in sdr++ server source
This commit is contained in:
parent
3ab669ecda
commit
3c19081561
@ -31,6 +31,7 @@ namespace server {
|
|||||||
|
|
||||||
// Initialize DSP
|
// Initialize DSP
|
||||||
decompIn.setBufferSize((sizeof(dsp::complex_t) * STREAM_BUFFER_SIZE) + 8);
|
decompIn.setBufferSize((sizeof(dsp::complex_t) * STREAM_BUFFER_SIZE) + 8);
|
||||||
|
decompIn.clearWriteStop();
|
||||||
decomp.init(&decompIn);
|
decomp.init(&decompIn);
|
||||||
link.init(&decomp.out, output);
|
link.init(&decomp.out, output);
|
||||||
decomp.start();
|
decomp.start();
|
||||||
@ -133,7 +134,9 @@ namespace server {
|
|||||||
void ClientClass::close() {
|
void ClientClass::close() {
|
||||||
decomp.stop();
|
decomp.stop();
|
||||||
link.stop();
|
link.stop();
|
||||||
|
decompIn.stopWriter();
|
||||||
client->close();
|
client->close();
|
||||||
|
decompIn.clearWriteStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ClientClass::isOpen() {
|
bool ClientClass::isOpen() {
|
||||||
|
Loading…
Reference in New Issue
Block a user