Skip to content

Commit

Permalink
Merge pull request #228 from tangle329/master
Browse files Browse the repository at this point in the history
Fix worker check issue
  • Loading branch information
aledbf committed Feb 7, 2017
2 parents f663ca4 + 008c47c commit 4eb527d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/nginx/pkg/cmd/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ NGINX master process died (%v): %v
// we wait until the workers are killed
for {
conn, err := net.DialTimeout("tcp", "127.0.0.1:80", 1*time.Second)
if err == nil {
conn.Close()
if err != nil {
break
}
conn.Close()
time.Sleep(1 * time.Second)
}
// start a new nginx master process
Expand Down

0 comments on commit 4eb527d

Please sign in to comment.