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,10 +360,13 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
||||||
sendMoreCh := make(chan struct{})
|
sendMoreCh := make(chan struct{})
|
||||||
|
|
||||||
// Create a datachannel with label 'data'
|
// Create a datachannel with label 'data'
|
||||||
dc, err := pc.CreateDataChannel("data", options)
|
var dc *webrtc.DataChannel
|
||||||
if err != nil {
|
if c.Options.IsSender {
|
||||||
log.Error(err)
|
dc, err = pc.CreateDataChannel("data", options)
|
||||||
return
|
if err != nil {
|
||||||
|
log.Error(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pc.OnICEConnectionStateChange(func(connectionState webrtc.ICEConnectionState) {
|
pc.OnICEConnectionStateChange(func(connectionState webrtc.ICEConnectionState) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue