Delete session on loss

pull/1/head
Flashfyre 8 months ago
parent a0f8ab658f
commit 4419ead54c

@ -303,7 +303,6 @@ func (s *Server) HandleSavedataClear(w http.ResponseWriter, r *http.Request) {
return
}
if sessionCompleted {
fileName := "session"
if slotId != 0 {
fileName += strconv.Itoa(slotId)
@ -314,7 +313,6 @@ func (s *Server) HandleSavedataClear(w http.ResponseWriter, r *http.Request) {
http.Error(w, fmt.Sprintf("failed to delete save file: %s", err), http.StatusInternalServerError)
return
}
}
w.Write(response)
}

Loading…
Cancel
Save