diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index af9f24e5473..57214c76e22 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -204,6 +204,7 @@ automatic splitting at root level, if root level element is an array. {pull}3415 - Improve documentation for event_logs.name configuration. {pull}34931[34931] - Move repeated channel not found errors to debug level. {issue}35314[35314] {pull}35317[35317] - Fix panic due to misrepresented buffer use. {pull}35437[35437] +- Allow program termination when attempting to open an absent channel. {pull}35474[35474] *Functionbeat* diff --git a/winlogbeat/beater/eventlogger.go b/winlogbeat/beater/eventlogger.go index 71fcbad04ab..3176ecd7c36 100644 --- a/winlogbeat/beater/eventlogger.go +++ b/winlogbeat/beater/eventlogger.go @@ -136,6 +136,12 @@ func (e *eventLogger) run( runLoop: for stop := false; !stop; { + select { + case <-done: + return + default: + } + err = api.Open(state) switch {