1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 17:10:55 +00:00

Merge pull request #2575 from PaulChen2016/master

Beego 运行过程中动态增减定时任务时,now的时间需要更新,否则等待时间会不正确
This commit is contained in:
astaxie 2017-04-19 21:17:38 +08:00 committed by GitHub
commit 7206214105

View File

@ -427,6 +427,7 @@ func run() {
}
continue
case <-changed:
now = time.Now().Local()
continue
case <-stop:
return