]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 当有切片等待下载时 会花较长时间结束 (#202)
authorqydysky <qydysky@foxmail.com>
Sun, 11 May 2025 07:59:15 +0000 (15:59 +0800)
committerGitHub <noreply@github.com>
Sun, 11 May 2025 07:59:15 +0000 (15:59 +0800)
CV/Var.go
bili_danmu.go

index d7f8235d06e1fad02b6791b937b83bc0124850d1..6a97476fcced73423b9c8b663712006d90d7f080 100644 (file)
--- a/CV/Var.go
+++ b/CV/Var.go
@@ -367,7 +367,7 @@ func (t *Common) Init() *Common {
                80:    "流畅",
        }
 
-       t.Danmu_Main_mq = mq.New(time.Second*5, time.Second*10)
+       t.Danmu_Main_mq = mq.New(time.Second*5, time.Second*90)
 
        go func() { //日期变化
                var old = time.Now().Hour()
index a21449ce157d18f5ba1facd47037c8fba7daea03..ceeb191c97b2a05d2cec4f617d1f684a03e8b4fe 100644 (file)
@@ -430,8 +430,8 @@ func entryRoom(rootCtx, mainCtx context.Context, danmulog *part.Log_interface, c
                                `interrupt`: func(_ any) (disable bool) {
                                        exitloop = true
                                        exitSign = true
-                                       ws_c.Close()
                                        danmulog.L(`I: `, "停止,等待服务器断开连接")
+                                       ws_c.Close()
                                        reply.StreamOStopAll() //停止录制
                                        return true
                                },