Fixes
This commit is contained in:
parent
12e62912c8
commit
5aae6ed383
10
stage.go
10
stage.go
@ -86,13 +86,15 @@ func (s *stage) chain(p Plugin) {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(f *file) {
|
go func(f *file) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
|
|
||||||
f.rewind()
|
f.rewind()
|
||||||
if err := proc.Process(s, f); err != nil {
|
keep, err := proc.Process(s, f)
|
||||||
|
if err != nil {
|
||||||
s.gs.fault(s, "Processing", f, err)
|
s.gs.fault(s, "Processing", f, err)
|
||||||
}
|
} else if keep {
|
||||||
|
|
||||||
dispatch(f)
|
dispatch(f)
|
||||||
|
} else {
|
||||||
|
atomic.AddInt64(&s.gs.active, -1)
|
||||||
|
}
|
||||||
}(f)
|
}(f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user