From 4b8c7e71835748e4def25837963d2ecc8439649f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 24 Dec 2014 01:22:09 +0800 Subject: [PATCH] logging --- session/sessions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/sessions.go b/session/sessions.go index 7275770..b437658 100644 --- a/session/sessions.go +++ b/session/sessions.go @@ -371,7 +371,7 @@ func (sessions *wSessions) Remove(sid string) { delete(SessionWS, sid) } - cnt := -1 // count wide sessions associated with HTTP session + cnt := 0 // count wide sessions associated with HTTP session for _, ses := range *sessions { if ses.HTTPSession.ID == s.HTTPSession.ID { cnt++