Skip to content

Commit

Permalink
[receiver/fluentforward] Release port on shutdown (#9111)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagansingh355 authored Apr 18, 2022
1 parent 7ad1e16 commit df42db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

### 🧰 Bug fixes 🧰

- `fluentforwardreceiver`: Release port on shutdown (#9111)

## v0.49.0

### 🛑 Breaking changes 🛑
Expand Down
1 change: 1 addition & 0 deletions receiver/fluentforwardreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (r *fluentReceiver) Start(ctx context.Context, _ component.Host) error {
}

func (r *fluentReceiver) Shutdown(context.Context) error {
r.listener.Close()
r.cancel()
return nil
}

0 comments on commit df42db3

Please sign in to comment.