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() {