Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit 5efc248

Browse files
author
Matt Tucker
committed
fix(nginx): known model shouldn't be refreshed if Nginx reload failed.
1 parent 5a5a2d7 commit 5efc248

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

router.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ func main() {
5050
log.Printf("Failed to write new nginx configuration; continuing with existing configuration: %v", err)
5151
continue
5252
}
53-
nginx.Reload()
53+
err = nginx.Reload()
54+
if err != nil {
55+
log.Printf("Failed to reload nginx; continuing with existing configuration: %v", err)
56+
continue
57+
}
5458
known = routerConfig
5559
}
5660
}

0 commit comments

Comments
 (0)