mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
remove some debug
This commit is contained in:
parent
621eff1c06
commit
4c1be0599f
1 changed files with 4 additions and 1 deletions
|
@ -399,6 +399,9 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
|||
break
|
||||
}
|
||||
}
|
||||
if pos == 0 {
|
||||
log.Debug("transfering file")
|
||||
}
|
||||
data := make([]byte, maxPacketSizeHalf)
|
||||
n, errRead := f.Read(data)
|
||||
if errRead != nil {
|
||||
|
@ -472,7 +475,7 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
|||
}
|
||||
err = box.Unbundle(string(dcMsg.Data), c.Key, &fd)
|
||||
if err == nil {
|
||||
log.Debug(fd.Position)
|
||||
// log.Debug(fd.Position)
|
||||
fwrite.Write(fd.Data)
|
||||
sendData([]byte{2, 3, 4})
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue