1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

fix(worker): do not init cgroup if it's not enabled

这个提交包含在:
bigeagle
2016-05-19 11:42:22 +08:00
父节点 fa98e4f029
当前提交 f6d53c16d6

查看文件

@@ -53,7 +53,9 @@ func GetTUNASyncWorker(cfg *Config) *Worker {
w.httpClient = httpClient
}
initCgroup(cfg.Cgroup.BasePath)
if cfg.Cgroup.Enable {
initCgroup(cfg.Cgroup.BasePath)
}
w.initJobs()
w.makeHTTPServer()
tunasyncWorker = w