Add missing return

pull/16/head
Pancakes 6 months ago
parent 46f6127aac
commit e4a9311fe4
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -161,6 +161,7 @@ func handleSession(w http.ResponseWriter, r *http.Request) {
if slot < 0 || slot >= defs.SessionSlotCount { if slot < 0 || slot >= defs.SessionSlotCount {
httpError(w, r, fmt.Errorf("slot id %d out of range", slot), http.StatusBadRequest) httpError(w, r, fmt.Errorf("slot id %d out of range", slot), http.StatusBadRequest)
return
} }
if !r.URL.Query().Has("clientSessionId") { if !r.URL.Query().Has("clientSessionId") {

Loading…
Cancel
Save