mirror of https://github.com/jlelse/GoBlog
Fix waitgroup
This commit is contained in:
parent
c57ae03502
commit
75e60326ff
|
@ -26,8 +26,8 @@ func (*goBlog) wrapForPlugins(
|
|||
_ = pw.Close()
|
||||
wg.Wait()
|
||||
}
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
wg.Add(1)
|
||||
defer wg.Done()
|
||||
doc, err := goquery.NewDocumentFromReader(pr)
|
||||
_ = pr.CloseWithError(err)
|
||||
|
|
Loading…
Reference in New Issue