DetectorWrapper: Clear synchronization prior to reconfiguring the detector

This commit is contained in:
2023-06-26 14:32:46 +02:00
parent 2a29c09a1a
commit 04a2e9d20c
+5
View File
@@ -12,6 +12,11 @@ void DetectorWrapper::Configure(const JFJochProtoBuf::DetectorConfig &request) {
try {
if (det.size() > 0)
InternalStop();
// Clear synchronization prior to reconfiguring the detector
det.setMaster(false, 0);
det.setSynchronization(false);
if (request.module_hostname_size() > 0) {
std::vector<std::string> module_hostname;
for (const auto &iter: request.module_hostname())