diff --git a/src/croc/croc.go b/src/croc/croc.go index f0565ed3..b4dbde8f 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -510,17 +510,12 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection } err = box.Unbundle(string(dcMsg.Data), c.Key, &fd) if err == nil { - lastSignal = time.Now() n, _ := fwrite.Write(fd.Data) bar.Add(n) if time.Since(lastSignal).Seconds() > 1 { sendData([]byte{2, 3, 4}) - time.Sleep(1 * time.Second) - sendData([]byte{2, 3, 4}) - time.Sleep(1 * time.Second) - sendData([]byte{2, 3, 4}) - time.Sleep(1 * time.Second) + lastSignal = time.Now() } } else { log.Error(err)