diff options
Diffstat (limited to 'livereload/hub.go')
-rw-r--r-- | livereload/hub.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/livereload/hub.go b/livereload/hub.go index 359bac3f1..8ab6083ad 100644 --- a/livereload/hub.go +++ b/livereload/hub.go @@ -41,14 +41,14 @@ func (h *hub) run() { h.connections[c] = true case c := <-h.unregister: delete(h.connections, c) - close(c.send) + c.close() case m := <-h.broadcast: for c := range h.connections { select { case c.send <- m: default: delete(h.connections, c) - close(c.send) + c.close() } } } |