diff options
-rw-r--r-- | internal/bootstrap/bootstrap.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/bootstrap/bootstrap.go b/internal/bootstrap/bootstrap.go index d7620eed0..3612a3694 100644 --- a/internal/bootstrap/bootstrap.go +++ b/internal/bootstrap/bootstrap.go @@ -69,7 +69,10 @@ func New(pidFile string, upgradesEnabled bool) (*Bootstrap, error) { } gracefulStopCh := make(chan struct{}) - go func() { <-upg.Exit(); close(gracefulStopCh) }() + go func() { + <-upg.Exit() + close(gracefulStopCh) + }() return &Bootstrap{ upgrader: upg, |