mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-17 01:30:34 +00:00
Fix goroutine leak in Run
D'oh, the servers' Shutdown() would never be called because they were never added to the list of servers. Thanks Danny for finding this.
This commit is contained in:
@@ -49,6 +49,7 @@ func (hc *httpModuleConfig) Run() error {
|
||||
return fmt.Errorf("%s: listening on %s: %v", proto, addr, err)
|
||||
}
|
||||
go s.Serve(ln)
|
||||
hc.servers = append(hc.servers, s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user