diff --git a/handler.go b/handler.go index 10985580..0cae50f3 100644 --- a/handler.go +++ b/handler.go @@ -543,6 +543,8 @@ func (cr *Cluster) handleDownload(rw http.ResponseWriter, req *http.Request, has } if err == storage.ErrNotWorking { log.Errorf("All storages are down, exit.") + tctx, _ := context.WithTimeout(context.TODO(), time.Second * 10) + cr.Disable(tctx) osExit(CodeClientOrEnvionmentError) } return