Skip to content

Commit

Permalink
Merge pull request #1 from grishinpv/grishinpv-patch-1
Browse files Browse the repository at this point in the history
Fix loop while reading from standalone evtx
  • Loading branch information
grishinpv authored Jan 25, 2022
2 parents 9b0ab2a + 5a99709 commit a49281f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions winlogbeat/beater/eventlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ runLoop:
e.log.Debugf("Read() returned %d records.", len(records))
if len(records) == 0 {
time.Sleep(time.Second)
if stop {
return
}
continue
}

Expand Down

0 comments on commit a49281f

Please sign in to comment.