Skip to content

Commit

Permalink
Fix error checking in pion-to-pion
Browse files Browse the repository at this point in the history
Example was checking wrong error in conditional.
  • Loading branch information
figadore authored and Sean-Der committed Feb 19, 2021
1 parent 8e85670 commit 8cb5bde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu
* [Pascal Benoit](https://github.com/pascal-ace)
* [Mats](https://github.com/Mindgamesnl)
* [donotanswer](https://github.com/f-viktor)
* [Reese](https://github.com/figadore)

### License
MIT License - see [LICENSE](LICENSE) for full text
2 changes: 1 addition & 1 deletion examples/pion-to-pion/offer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func main() { //nolint:gocognit
desc := peerConnection.RemoteDescription()
if desc == nil {
pendingCandidates = append(pendingCandidates, c)
} else if onICECandidateErr := signalCandidate(*answerAddr, c); err != nil {
} else if onICECandidateErr := signalCandidate(*answerAddr, c); onICECandidateErr != nil {
panic(onICECandidateErr)
}
})
Expand Down

0 comments on commit 8cb5bde

Please sign in to comment.