client: support servers that send frames with a frequency lower than 1sec

This commit is contained in:
aler9
2021-05-29 19:06:30 +02:00
parent e9ef8d739f
commit 150c03a05e

View File

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