mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-13 10:53:45 +08:00
refactor: gb28181仅支持多端口推流, 提升代码健壮性
This commit is contained in:
@@ -16,7 +16,7 @@ type sourceManger struct {
|
||||
m sync.Map
|
||||
}
|
||||
|
||||
func (s *sourceManger) Add(source Source) error {
|
||||
func (s *sourceManger) add(source Source) error {
|
||||
_, ok := s.m.LoadOrStore(source.GetID(), source)
|
||||
if ok {
|
||||
return fmt.Errorf("the source %s has been exist", source.GetID())
|
||||
|
Reference in New Issue
Block a user