mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
controlplane: avoid calling Close on nil listener (#5156)
Tweak the cleanup logic in controlplane.NewServer() to avoid a nil panic if the DebugListener fails to start.
This commit is contained in:
parent
42a975ce44
commit
f5f5e5fddc
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func NewServer(cfg *config.Config, metricsMgr *config.MetricsManager, eventsMgr
|
|||
if err != nil {
|
||||
_ = srv.GRPCListener.Close()
|
||||
_ = srv.HTTPListener.Close()
|
||||
_ = srv.DebugListener.Close()
|
||||
_ = srv.MetricsListener.Close()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue