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:
commit
7206214105
@ -427,6 +427,7 @@ func run() {
|
|||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
case <-changed:
|
case <-changed:
|
||||||
|
now = time.Now().Local()
|
||||||
continue
|
continue
|
||||||
case <-stop:
|
case <-stop:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user