Skip to content

Commit

Permalink
Fix linter erros
Browse files Browse the repository at this point in the history
Resolve linter issues and address feedback
  • Loading branch information
stephanrotolante committed Mar 21, 2024
1 parent b552e52 commit 504425e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/whip-whep/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ func main() {
fmt.Printf("ICE Connection State has changed: %s\n", connectionState.String())

if connectionState == webrtc.ICEConnectionStateFailed {
peerConnection.Close()
closeErr := peerConnection.Close()

if closeErr != nil {
panic(closeErr)
}
}
})

Expand Down

0 comments on commit 504425e

Please sign in to comment.