mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
refactor: gb28181仅支持多端口推流, 提升代码健壮性
This commit is contained in:
@@ -195,6 +195,13 @@ func StartIdleTimer(source Source) *time.Timer {
|
||||
return idleTimer
|
||||
}
|
||||
|
||||
func CloseSource(id string) {
|
||||
source := SourceManager.Find(id)
|
||||
if source != nil {
|
||||
source.Close()
|
||||
}
|
||||
}
|
||||
|
||||
// LoopEvent 循环读取事件
|
||||
func LoopEvent(source Source) {
|
||||
source.StartTimers(source)
|
||||
|
Reference in New Issue
Block a user