Skip to content

Commit a836c37

Browse files
authored
Merge pull request #150 from RHavar/patch-1
Update hub.go
2 parents 54f9dec + b5afd49 commit a836c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chat/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (h *Hub) run() {
4343
case conn.send <- message:
4444
default:
4545
close(conn.send)
46-
delete(hub.connections, conn)
46+
delete(h.connections, conn)
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)