diff --git a/app/router.go b/app/router.go index 984af97d2..eb0f1a6c1 100644 --- a/app/router.go +++ b/app/router.go @@ -185,6 +185,7 @@ func apiHandler(rep Reporter) CtxHandlerFunc { report, err := rep.Report(ctx) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) + return } newVersion.Lock() defer newVersion.Unlock()