Unverified Commit 55f390d0 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3387 from wuyumin/master

dynamically add task #2708
parents cf312226 2d6f1af1
......@@ -449,6 +449,7 @@ func StopTask() {
// AddTask add task with name
func AddTask(taskname string, t Tasker) {
t.SetNext(time.Now().Local())
AdminTaskList[taskname] = t
if isstart {
changed <- true
......
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