mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Add missing return
This commit is contained in:
parent
46f6127aac
commit
e4a9311fe4
@ -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…
x
Reference in New Issue
Block a user