mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 06:10:51 +00:00
Merge pull request #2575 from PaulChen2016/master
Beego 运行过程中动态增减定时任务时,now的时间需要更新,否则等待时间会不正确
This commit is contained in:
commit
7206214105
@ -427,6 +427,7 @@ func run() {
|
||||
}
|
||||
continue
|
||||
case <-changed:
|
||||
now = time.Now().Local()
|
||||
continue
|
||||
case <-stop:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user