From da11faf042064c63fd0c1ec16db9f7c885dd7a4f Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 19 Nov 2019 16:03:36 -0800 Subject: [PATCH] Revert "ping" This reverts commit ad60618cb6c04387179ded7a9c40e32e7083ceec. --- src/croc/croc.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index f0565ed..b4dbde8 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)