diff --git a/core/event_handler/EventHandler.cpp b/core/event_handler/EventHandler.cpp index 279fb88568..b12d6796df 100644 --- a/core/event_handler/EventHandler.cpp +++ b/core/event_handler/EventHandler.cpp @@ -860,11 +860,11 @@ void ModifyHandler::HandleTimeOut() { LogFileReaderPtrArray& readerArray = readerIter->second; // donot check file delete flag or close ptr when array size > 1 if (readerArray.size() > 1) { - ++readerIter; - actioned = true; LOG_DEBUG(sLogger, ("HandleTimeOut filename", readerIter->first)("dir", readerArray[0]->GetLogPath().c_str())( "action", "continue")("reason", "reader array size > 1")); + ++readerIter; + actioned = true; continue; }