There was an error while loading. Please reload this page.
2 parents 54f9dec + b5afd49 commit a836c37Copy full SHA for a836c37
examples/chat/hub.go
@@ -43,7 +43,7 @@ func (h *Hub) run() {
43
case conn.send <- message:
44
default:
45
close(conn.send)
46
-delete(hub.connections, conn)
+delete(h.connections, conn)
47
}
48
49
0 commit comments