From 3c190815611f4f76f244611b426352e12ce8e4f6 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sat, 29 Jan 2022 17:42:53 +0100 Subject: [PATCH] Bugfix in sdr++ server source --- source_modules/sdrpp_server_source/src/sdrpp_server_client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source_modules/sdrpp_server_source/src/sdrpp_server_client.cpp b/source_modules/sdrpp_server_source/src/sdrpp_server_client.cpp index bcfacc7f..cc29de98 100644 --- a/source_modules/sdrpp_server_source/src/sdrpp_server_client.cpp +++ b/source_modules/sdrpp_server_source/src/sdrpp_server_client.cpp @@ -31,6 +31,7 @@ namespace server { // Initialize DSP decompIn.setBufferSize((sizeof(dsp::complex_t) * STREAM_BUFFER_SIZE) + 8); + decompIn.clearWriteStop(); decomp.init(&decompIn); link.init(&decomp.out, output); decomp.start(); @@ -133,7 +134,9 @@ namespace server { void ClientClass::close() { decomp.stop(); link.stop(); + decompIn.stopWriter(); client->close(); + decompIn.clearWriteStop(); } bool ClientClass::isOpen() {