From: qydysky Date: Sat, 29 Jul 2023 09:42:21 +0000 (+0800) Subject: Fix flv模式间断后的数据未保存 #80 X-Git-Tag: v0.10.7~3 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=d17f462fb8913417cb307c757042b63e671315a0;p=bili_danmu%2F.git Fix flv模式间断后的数据未保存 #80 --- diff --git a/Reply/stream.go b/Reply/stream.go index 196c827..05d9825 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -801,7 +801,6 @@ func (t *M4SStream) saveStreamFlv() (e error) { buff.Reset() ticker.Stop() - t.Stream_msg.PushLock_tag(`close`, nil) }() t.log.L(`I: `, `flv下载开始`) @@ -839,6 +838,7 @@ func (t *M4SStream) saveStreamFlv() (e error) { } cancel() t.reqPool.Put(r) + t.Stream_msg.PushLock_tag(`close`, nil) } }