Commit 72062141 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2575 from PaulChen2016/master

Beego 运行过程中动态增减定时任务时,now的时间需要更新,否则等待时间会不正确
parents b08ace75 0cb8de42
......@@ -427,6 +427,7 @@ func run() {
}
continue
case <-changed:
now = time.Now().Local()
continue
case <-stop:
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment