This commit is contained in:
Liang Ding 2014-12-24 01:22:09 +08:00
parent 66b82e31d4
commit 4b8c7e7183
1 changed files with 1 additions and 1 deletions

View File

@ -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++