From e4a9311fe4c02214e512919d444a893eacf840c6 Mon Sep 17 00:00:00 2001 From: Pancakes Date: Fri, 7 Jun 2024 23:11:09 -0400 Subject: [PATCH] Add missing return --- api/endpoints.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/endpoints.go b/api/endpoints.go index 0d3eea9..e56878f 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -161,6 +161,7 @@ func handleSession(w http.ResponseWriter, r *http.Request) { if slot < 0 || slot >= defs.SessionSlotCount { httpError(w, r, fmt.Errorf("slot id %d out of range", slot), http.StatusBadRequest) + return } if !r.URL.Query().Has("clientSessionId") {