mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix gateway reload will cause pico stop working issue (#2082)
* fix gateway reload will cause pico stop working issue * fix for review
This commit is contained in:
@@ -730,8 +730,8 @@ func (h *Handler) gatewayStatusData() map[string]any {
|
||||
gateway.mu.Unlock()
|
||||
logger.ErrorC("gateway", fmt.Sprintf("Gateway health check failed: %v", err))
|
||||
} else {
|
||||
logger.InfoC("gateway", fmt.Sprintf("Gateway health status: %d", statusCode))
|
||||
if statusCode != http.StatusOK {
|
||||
logger.WarnC("gateway", fmt.Sprintf("Gateway health status: %d", statusCode))
|
||||
gateway.mu.Lock()
|
||||
setGatewayRuntimeStatusLocked("error")
|
||||
gateway.mu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user