Skip to content

Commit

Permalink
Check for ErrClosed on ice gatherer close
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVerkada committed Feb 2, 2024
1 parent ffb5770 commit 9ae37d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icegatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (g *ICEGatherer) Close() error {

if g.agent == nil {
return nil
} else if err := g.agent.Close(); err != nil {
} else if err := g.agent.Close(); err != nil && err != ice.ErrClosed {

Check failure on line 195 in icegatherer.go

View workflow job for this annotation

GitHub Actions / lint / Go

comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
return err
}

Expand Down

0 comments on commit 9ae37d2

Please sign in to comment.