Cleanup will close remaining listeners if they still remain because some of the servers fail to start. It simply calls Stop because Stop won't be called when Start fails.
()
| 804 | // because some of the servers fail to start. |
| 805 | // It simply calls Stop because Stop won't be called when Start fails. |
| 806 | func (app *App) Cleanup() error { |
| 807 | if app.stopped { |
| 808 | return nil |
| 809 | } |
| 810 | return app.Stop() |
| 811 | } |
| 812 | |
| 813 | func (app *App) httpPort() int { |
| 814 | if app.HTTPPort == 0 { |