From 150c03a05e2ecf43114e4b396f9715e9190682f4 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 29 May 2021 19:06:30 +0200 Subject: [PATCH] client: support servers that send frames with a frequency lower than 1sec --- clientconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientconn.go b/clientconn.go index 2ef066d0..d4719d82 100644 --- a/clientconn.go +++ b/clientconn.go @@ -595,7 +595,7 @@ func (cc *ClientConn) runBackgroundPlayTCP() error { // therefore, we disable the deadline and perform check with a ticker. cc.nconn.SetReadDeadline(time.Time{}) - var lastFrameTime int64 + lastFrameTime := time.Now().Unix() readerDone := make(chan error) go func() {