mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-07 22:32:24 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user