Skip to content
Snippets Groups Projects
Commit 8c6f0dba authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Check error for calls to preparePeerConnection

parent c8136f45
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,9 @@ func (c *WebRTCPeer) connect(config *webrtc.Configuration, broker *BrokerChannel
log.Println(c.id, " connecting...")
// TODO: When go-webrtc is more stable, it's possible that a new
// PeerConnection won't need to be re-prepared each time.
c.preparePeerConnection(config)
if err := c.preparePeerConnection(config); err != nil {
return err
}
answer, err := broker.Negotiate(c.pc.LocalDescription())
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment