fix: change tracks to sync.Map to void dead lock

This commit is contained in:
langhuihui
2023-05-21 14:27:57 +08:00
parent 3ee931ce61
commit e21f8f765a
9 changed files with 170 additions and 37 deletions

View File

@@ -109,7 +109,7 @@ func (p *Push) AddPush(url string, streamPath string) {
if p.PushList == nil {
p.PushList = make(map[string]string)
}
p.PushList[url] = streamPath
p.PushList[streamPath] = url
}
type Console struct {