From 25eea870832b1d59d16ae9b22856784b707112e9 Mon Sep 17 00:00:00 2001 From: sdn-ninja Date: Thu, 9 May 2024 21:54:08 +0100 Subject: [PATCH] Update Capture.cpp terminating the t1 thread correctly to stop device start() and process() every time the while(true) loop is executed. --- src/capture/Capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capture/Capture.cpp b/src/capture/Capture.cpp index ad636d7..73511a8 100644 --- a/src/capture/Capture.cpp +++ b/src/capture/Capture.cpp @@ -61,7 +61,7 @@ void Capture::process(IqData *buffer1, IqData *buffer2, c4::yml::NodeRef config, { device->replay(buffer1, buffer2, file, loop); } - + t1.join(); } std::unique_ptr Capture::factory_source(const std::string& type, c4::yml::NodeRef config)