diff --git a/playground/build.go b/playground/build.go index d4bb74f..f812fbb 100644 --- a/playground/build.go +++ b/playground/build.go @@ -63,7 +63,6 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) { data["output"] = template.HTML(string(out)) if nil != err { - logger.Error(err) data["succ"] = false return diff --git a/session/sessions.go b/session/sessions.go index c7399ed..45e09e5 100644 --- a/session/sessions.go +++ b/session/sessions.go @@ -381,7 +381,7 @@ func (sessions *wSessions) Remove(sid string) { cnt := 0 // count wide sessions associated with HTTP session for _, ses := range *sessions { - if ses.HTTPSession.Values["id"] == s.HTTPSession.Values["id"] { + if ses.Username == s.Username { cnt++ } }