bug fix: gateway should not start when gateway server is not running (#1562)

This commit is contained in:
Cytown 2026-03-17 19:07:36 +08:00 committed by GitHub
parent 7b9fdaec32
commit afe22c5adf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,7 +396,7 @@ func (m *Manager) StartAll(ctx context.Context) error {
"addr": m.httpServer.Addr,
})
if err := m.httpServer.ListenAndServe(); err != nil && err != http.ErrServerClosed {
logger.ErrorCF("channels", "Shared HTTP server error", map[string]any{
logger.FatalCF("channels", "Shared HTTP server error", map[string]any{
"error": err.Error(),
})
}