From 38b35c292e36748bbf88456a49c53a5ab54a485b Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Sat, 3 Mar 2018 07:23:06 -0500 Subject: [PATCH] use the correct error channel (#2164) --- internal/ingress/controller/nginx.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index 6867487506..ef3e53735b 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -284,7 +284,6 @@ func (n *NGINXController) Start() { go n.syncStatus.Run() } - done := make(chan error, 1) cmd := exec.Command(n.binary, "-c", cfgPath) // put nginx in another process group to prevent it @@ -307,7 +306,7 @@ func (n *NGINXController) Start() { for { select { - case err := <-done: + case err := <-n.ngxErrCh: if n.isShuttingDown { break }