Merge pull request #150 from RHavar/patch-1

Update hub.go
This commit is contained in:
Gary Burd 2016-07-10 21:44:50 -07:00 committed by GitHub
commit a836c37014
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func (h *Hub) run() {
case conn.send <- message:
default:
close(conn.send)
delete(hub.connections, conn)
delete(h.connections, conn)
}
}
}