调整 位置

master
dengsgo 2019-06-04 10:58:42 +08:00
parent 30312d4b9c
commit b6be235c6e
1 changed files with 1 additions and 1 deletions

View File

@ -52,10 +52,10 @@ func (t *TaskMan) preRun(cf *changedFile) {
}
}
go t.run(cf)
go t.notifier.Put(cf)
}
func (t *TaskMan) run(cf *changedFile) {
go t.notifier.Put(cf)
t.runLock.Lock()
defer t.runLock.Unlock()
for i := 0; i < len(cfg.Command.Exec); i++ {