mirror of https://github.com/schollz/croc.git
no bounds
This commit is contained in:
parent
cdc962b59a
commit
29cdab8db6
|
@ -435,7 +435,7 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
pos += uint64(n)
|
pos += uint64(n)
|
||||||
readyToBegin = false
|
// readyToBegin = false
|
||||||
}
|
}
|
||||||
log.Debug(float64(fstat.Size()) / float64(time.Since(timeStart).Seconds()) / 1000000)
|
log.Debug(float64(fstat.Size()) / float64(time.Since(timeStart).Seconds()) / 1000000)
|
||||||
|
|
||||||
|
@ -490,7 +490,7 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
||||||
readyToEnd = true
|
readyToEnd = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if fileSize == 0 {
|
if fileSize == 0 && !c.Options.IsSender {
|
||||||
err = box.Unbundle(string(dcMsg.Data), c.Key, &fileSize)
|
err = box.Unbundle(string(dcMsg.Data), c.Key, &fileSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fileSize = 0
|
fileSize = 0
|
||||||
|
@ -510,7 +510,7 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
||||||
// log.Debug(fd.Position)
|
// log.Debug(fd.Position)
|
||||||
n, _ := fwrite.Write(fd.Data)
|
n, _ := fwrite.Write(fd.Data)
|
||||||
bar.Add(n)
|
bar.Add(n)
|
||||||
sendData([]byte{2, 3, 4})
|
// sendData([]byte{2, 3, 4})
|
||||||
} else {
|
} else {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue