浏览代码

Update hub.go

Ryan Havar 9 年之前
父节点
当前提交
b5afd49817
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 				}
 			}
 		}