restream stop if stop called, temp solution (#1092)

* restream stop if stop called, temp solution until new command for it

* chekckrestream is ambiguous when only checking receiver

* moved restreaming in background to receiver stop instead of detector stop (was in stop before due to gui stop button access), increase to 2s time to restream in client acquire

* minor

* moved stop to module class

* fix from before
This commit is contained in:
2025-02-11 09:17:25 +01:00
committed by GitHub
parent 60ce31bb17
commit 84e83bf551
2 changed files with 7 additions and 19 deletions
+2 -1
View File
@@ -1179,7 +1179,8 @@ int DetectorImpl::acquire() {
} else if (receiver) {
while (numZmqRunning != 0) {
Parallel(&Module::restreamStopFromReceiver, {});
std::this_thread::sleep_for(std::chrono::milliseconds(200));
// increase time for fewer dummy packets to process
std::this_thread::sleep_for(std::chrono::seconds(2));
}
}
dataProcessingThread.join();