We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f77b02d commit 2241ed0Copy full SHA for 2241ed0
UserTools/LoadANNIEEvent/LoadANNIEEvent.cpp
@@ -51,6 +51,7 @@ bool LoadANNIEEvent::Execute() {
51
if ( stop_the_loop == 1 ) return false;
52
53
if (need_new_file_) {
54
+ need_new_file_=false;
55
56
// Delete the old ANNIEEvent Store if there is one
57
if ( m_data->Stores.count("ANNIEEvent") ) {
@@ -78,11 +79,11 @@ bool LoadANNIEEvent::Execute() {
78
79
++current_entry_;
80
81
if ( current_entry_ >= total_entries_in_file_ ) {
82
+ ++current_file_;
83
if ( current_file_ >= input_filenames_.size() ) {
84
m_data->vars.Set("StopLoop", 1);
85
}
86
else {
- ++current_file_;
87
current_entry_ = 0u;
88
need_new_file_ = true;
89
0 commit comments