mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
Make sure that HugoSites is always closed when done
Including all the integration tests.
This commit is contained in:
parent
d37606d2c2
commit
352be5ba87
4 changed files with 32 additions and 4 deletions
|
@ -1012,10 +1012,6 @@ func (c *serverCommand) serve() error {
|
|||
c.r.Println("Error:", err)
|
||||
}
|
||||
|
||||
if h := c.hugoTry(); h != nil {
|
||||
h.Close()
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
wg2, ctx := errgroup.WithContext(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue