mqtt加入认证,优化视频播放与浏览器

This commit is contained in:
2025-03-07 16:04:19 +08:00
parent c71e8bc13d
commit febcdfdbf7
13 changed files with 60 additions and 82 deletions

View File

@@ -13,14 +13,11 @@ func Pause(ps *common.PauseSub, isPause bool, play func(c context.Context) error
run := true
if isPause {
p := make(chan int8)
defer close(p)
zap.S().Infoln("待机暂停控制器")
defer zap.S().Infoln("待机暂停控制器结束")
ps.Add(p)
defer ps.Remove(p)
zap.S().Infoln("待机控制器")
defer zap.S().Infoln("待机控制器结束")
p := ps.GetNew()
defer ps.Close(p)
// 等待组
var wait sync.WaitGroup