瀏覽代碼

Merge pull request #150 from RHavar/patch-1

Update hub.go
Gary Burd 9 年之前
父節點
當前提交
a836c37014
共有 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)
 				}
 			}
 		}