From 246c76a18da678369f62d3289ad231bc277ab2dc Mon Sep 17 00:00:00 2001 From: qydysky Date: Tue, 31 Dec 2024 22:00:25 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E7=89=87=E6=AE=B5=E6=97=B6=E9=95=BF?= =?utf8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E8=BF=94=E5=9B=9E=E5=85=A8=E9=83=A8?= =?utf8?q?=E6=97=B6=E9=95=BF=20(#139)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reply/F.go b/Reply/F.go index 9a029d1..2773fe0 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1175,7 +1175,7 @@ func init() { ts := time.Now() defer func() { flog.L(`T: `, r.RemoteAddr, `断开录播`, time.Since(ts)) }() - if startT != 0 { + if startT+duration != 0 { res := pio.WriterWithConfig(w, pio.CopyConfig{BytePerSec: speed, SkipByte: rangeHeaderNum}) if strings.HasSuffix(v, "flv") { -- 2.39.2