diff --git a/EventFilter/Utilities/interface/DAQSource.h b/EventFilter/Utilities/interface/DAQSource.h index 2b35a85837205..6c21262ce57d6 100644 --- a/EventFilter/Utilities/interface/DAQSource.h +++ b/EventFilter/Utilities/interface/DAQSource.h @@ -159,7 +159,6 @@ class DAQSource : public edm::RawInputSource { std::list>> filesToDelete_; std::mutex fileDeleteLock_; std::vector streamFileTracker_; - unsigned int nStreams_ = 0; unsigned int checkEvery_ = 10; //supervisor thread wakeup diff --git a/EventFilter/Utilities/src/DAQSource.cc b/EventFilter/Utilities/src/DAQSource.cc index 1f1e1972d33ae..b607b13ca1dd0 100644 --- a/EventFilter/Utilities/src/DAQSource.cc +++ b/EventFilter/Utilities/src/DAQSource.cc @@ -556,7 +556,7 @@ void DAQSource::read(edm::EventPrincipal& eventPrincipal) { auto it = filesToDelete_.begin(); while (it != filesToDelete_.end()) { bool fileIsBeingProcessed = false; - for (unsigned int i = 0; i < nStreams_; i++) { + for (unsigned int i = 0; i < streamFileTracker_.size(); i++) { if (it->first == streamFileTracker_.at(i)) { fileIsBeingProcessed = true; break;