This commit is contained in:
Liang Ding 2014-12-24 00:35:55 +08:00
parent c0c6609e83
commit 66b82e31d4
1 changed files with 3 additions and 3 deletions

View File

@ -371,9 +371,9 @@ func (sessions *wSessions) Remove(sid string) {
delete(SessionWS, sid)
}
cnt := 0 // count wide sessions associated with HTTP session
for _, s := range *sessions {
if s.HTTPSession.ID == s.HTTPSession.ID {
cnt := -1 // count wide sessions associated with HTTP session
for _, ses := range *sessions {
if ses.HTTPSession.ID == s.HTTPSession.ID {
cnt++
}
}