Ryan Havar 9 anni fa
parent
commit
b5afd49817
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/chat/hub.go

+ 1 - 1
examples/chat/hub.go

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