修复 delay=0 bug

master
dengsgo 2018-12-30 15:07:40 +08:00
parent 308ff29151
commit 755a7e8c07
1 changed files with 1 additions and 1 deletions

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()