mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
修复超时计时器未关闭, 造成Source内存泄漏问题
This commit is contained in:
@@ -24,14 +24,6 @@ func PreparePublishSource(source Source, hook bool) (*http.Response, utils.HookS
|
||||
return nil, utils.HookStateOccupy
|
||||
}
|
||||
|
||||
if AppConfig.Hooks.IsEnableOnReceiveTimeout() && AppConfig.ReceiveTimeout > 0 {
|
||||
StartReceiveDataTimer(source)
|
||||
}
|
||||
|
||||
if AppConfig.Hooks.IsEnableOnIdleTimeout() && AppConfig.IdleTimeout > 0 {
|
||||
StartIdleTimer(source)
|
||||
}
|
||||
|
||||
source.SetCreateTime(time.Now())
|
||||
|
||||
urls := GetStreamPlayUrls(source.GetID())
|
||||
|
Reference in New Issue
Block a user