From f29128459f28e0accd57951852400d4b88a408f4 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 8 May 2022 10:13:43 +0800 Subject: [PATCH] =?utf8?q?=E5=BD=93=E6=B5=81=E8=B6=85=E6=97=B6=E6=97=B6?= =?utf8?q?=E4=B8=8D=E5=86=8D=E5=B0=9D=E8=AF=95=E4=B8=8B=E8=BD=BD=E5=88=87?= =?utf8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Reply/stream.go b/Reply/stream.go index 6de4099..1364ffb 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -445,8 +445,12 @@ func (t *M4SStream) saveStream() { // 停止录制 if !t.Status.Islive() { if len(download_seq) != 0 { - t.log.L(`I: `, `下载最后切片:`, len(download_seq)) - continue + if time.Now().Unix() > t.stream_expires { + t.log.L(`E: `, `切片下载超时`) + } else { + t.log.L(`I: `, `下载最后切片:`, len(download_seq)) + continue + } } break } -- 2.39.2