1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From d8f44790c4cc4b76421c930e4d2f29ca30539b3c Mon Sep 17 00:00:00 2001
From: Michael Ossmann <mike@ossmann.com>
Date: Sat, 24 Sep 2022 14:01:27 -0400
Subject: [PATCH 2/4] deactivate stream when closing stream
---
HackRF_Streaming.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/HackRF_Streaming.cpp b/HackRF_Streaming.cpp
index 305a334..9ea8514 100644
--- a/HackRF_Streaming.cpp
+++ b/HackRF_Streaming.cpp
@@ -254,6 +254,7 @@ SoapySDR::Stream *SoapyHackRF::setupStream(
void SoapyHackRF::closeStream( SoapySDR::Stream *stream )
{
+ this->deactivateStream(stream, 0, 0);
std::lock_guard<std::mutex> lock(_device_mutex);
if (stream == RX_STREAM) {
_rx_stream.clear_buffers();
--
2.47.3
|