mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
max transmits ->0
This commit is contained in:
parent
14ccbd0210
commit
93c7df57d9
1 changed files with 7 additions and 4 deletions
|
@ -360,11 +360,14 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
|||
sendMoreCh := make(chan struct{})
|
||||
|
||||
// Create a datachannel with label 'data'
|
||||
dc, err := pc.CreateDataChannel("data", options)
|
||||
var dc *webrtc.DataChannel
|
||||
if c.Options.IsSender {
|
||||
dc, err = pc.CreateDataChannel("data", options)
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
pc.OnICEConnectionStateChange(func(connectionState webrtc.ICEConnectionState) {
|
||||
log.Debugf("ICE Connection State has changed: %s", connectionState.String())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue