Skip to content

Commit

Permalink
Move stop variable and check to outer loop, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-swanson committed Feb 2, 2022
1 parent 9198b89 commit a3fa9bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Improve ECS field mappings in Sysmon module. `rule.name` is populated for all events when present. {issue}18364[18364]
- Remove top level `hash` property from sysmon events {pull}20653[20653]
- Move module processing from local Javascript processor to ingest node {issue}29184[29184] {pull}29435[29435]
- Fix run loop when reading from evtx file {pull}30006[30006]

*Functionbeat*

Expand Down
4 changes: 2 additions & 2 deletions winlogbeat/beater/eventlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (e *eventLogger) run(
}()

runLoop:
for {
for stop := false; !stop; {
err = api.Open(state)
if eventlog.IsRecoverable(err) {
e.log.Warnw("Open() encountered recoverable error. Trying again...", "error", err)
Expand All @@ -142,7 +142,7 @@ runLoop:
}
e.log.Debug("Opened successfully.")

for stop := false; !stop; {
for !stop {
select {
case <-done:
return
Expand Down

0 comments on commit a3fa9bc

Please sign in to comment.