修复 delay=0 bug

This commit is contained in:
dengsgo 2018-12-30 15:07:40 +08:00
parent 308ff29151
commit 755a7e8c07

View File

@ -26,7 +26,7 @@ func newTasker(delay int) *Tasker {
func (t *Tasker) Put(cf *changeFile) {
if t.delay < 1 {
go t.run(cf)
t.preRun(cf)
return
}
t.putLock.Lock()