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()
|
_ = pw.Close()
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
wg.Add(1)
|
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
doc, err := goquery.NewDocumentFromReader(pr)
|
doc, err := goquery.NewDocumentFromReader(pr)
|
||||||
_ = pr.CloseWithError(err)
|
_ = pr.CloseWithError(err)
|
||||||
|
|
Loading…
Reference in New Issue