Explorar el Código

Merge pull request #150 from RHavar/patch-1

Update hub.go
Gary Burd hace 9 años
padre
commit
a836c37014
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 				}
 			}
 		}