调整 位置

This commit is contained in:
dengsgo 2019-06-04 10:58:42 +08:00
parent 30312d4b9c
commit b6be235c6e

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++ {