Skip to content

Commit

Permalink
Fix worker check issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tang Le <at28997146@163.com>
  • Loading branch information
tangle329 committed Feb 4, 2017
1 parent c0aca18 commit 008c47c
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 008c47c

Please sign in to comment.