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
+1 -1
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(),
})
}