diff options
| author | David Fifield <david@bamsoftware.com> | 2019-12-24 19:57:01 -0700 |
|---|---|---|
| committer | David Fifield <david@bamsoftware.com> | 2020-01-23 11:24:00 -0700 |
| commit | 84e9b0626c1eb3de2f97af7379c973413f6b476d (patch) | |
| tree | ae3f104ec2ad371f452c42504e61873ade656a30 | |
| parent | f1ab65b1c050ee603454f3d9836753512863e21a (diff) | |
Remove check for nil BrokerChannel.
NewWebRTCDialer initializes this.
| -rw-r--r-- | client/lib/rendezvous.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/client/lib/rendezvous.go b/client/lib/rendezvous.go index 0b15f68..64545a6 100644 --- a/client/lib/rendezvous.go +++ b/client/lib/rendezvous.go @@ -141,9 +141,6 @@ func NewWebRTCDialer(broker *BrokerChannel, iceServers []webrtc.ICEServer) *WebR // Initialize a WebRTC Connection by signaling through the broker. func (w WebRTCDialer) Catch() (Snowflake, error) { - if nil == w.BrokerChannel { - return nil, errors.New("cannot Dial WebRTC without a BrokerChannel") - } // TODO: [#3] Fetch ICE server information from Broker. // TODO: [#18] Consider TURN servers here too. connection := NewWebRTCPeer(w.webrtcConfig, w.BrokerChannel) |
