mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Check error for calls to preparePeerConnection
This commit is contained in:
parent
c8136f4534
commit
8c6f0dbae7
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ func (c *WebRTCPeer) connect(config *webrtc.Configuration, broker *BrokerChannel
|
||||||
log.Println(c.id, " connecting...")
|
log.Println(c.id, " connecting...")
|
||||||
// TODO: When go-webrtc is more stable, it's possible that a new
|
// TODO: When go-webrtc is more stable, it's possible that a new
|
||||||
// PeerConnection won't need to be re-prepared each time.
|
// 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())
|
answer, err := broker.Negotiate(c.pc.LocalDescription())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue