Skip to content

Commit

Permalink
use the correct error channel (#2164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvinEfendi authored and aledbf committed Mar 3, 2018
1 parent 038804b commit 38b35c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/ingress/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -307,7 +306,7 @@ func (n *NGINXController) Start() {

for {
select {
case err := <-done:
case err := <-n.ngxErrCh:
if n.isShuttingDown {
break
}
Expand Down

0 comments on commit 38b35c2

Please sign in to comment.