mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
update
This commit is contained in:
parent
fd7d035087
commit
3d63253e90
1 changed files with 3 additions and 0 deletions
|
@ -456,6 +456,8 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
|||
log.Debug("received magic")
|
||||
fwrite.Close()
|
||||
sendData([]byte{1, 3, 4})
|
||||
sendData([]byte{1, 3, 4})
|
||||
sendData([]byte{1, 3, 4})
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
finished <- nil
|
||||
return
|
||||
|
@ -470,6 +472,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)
|
||||
fwrite.Write(fd.Data)
|
||||
} else {
|
||||
log.Error(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue