diff --git a/slsReceiverSoftware/src/Implementation.cpp b/slsReceiverSoftware/src/Implementation.cpp index c99d471de..d46c3956b 100644 --- a/slsReceiverSoftware/src/Implementation.cpp +++ b/slsReceiverSoftware/src/Implementation.cpp @@ -843,10 +843,9 @@ void Implementation::shutDownUDPSockets() { } void Implementation::restreamStop() { - for (const auto &it : dataStreamer) { - std::string fnametostream = (filePath / fileName).string(); + std::string fnametostream = (filePath / fileName).string(); + for (const auto &it : dataStreamer) it->RestreamStop(fnametostream); - } LOG(logINFO) << "Restreaming Dummy Header via ZMQ successful"; }