From: spf13 Date: Tue, 27 May 2014 22:35:12 +0000 (-0400) Subject: Fixing bug with Live Reload where it broadcast instead of sending the handshake X-Git-Tag: v0.11~17 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79dd1d02b49bc7a296e2eb607c29192709eeab06;p=brevno-suite%2Fhugo Fixing bug with Live Reload where it broadcast instead of sending the handshake --- diff --git a/livereload/connection.go b/livereload/connection.go index 70a7e6d5..c35a403e 100644 --- a/livereload/connection.go +++ b/livereload/connection.go @@ -35,11 +35,11 @@ func (c *connection) reader() { } switch true { case bytes.Contains(message, []byte(`"command":"hello"`)): - wsHub.broadcast <- []byte(`{ - "command": "hello", - "protocols": [ "http://livereload.com/protocols/official-7" ], - "serverName": "Hugo" - }`) + c.send <- []byte(`{ + "command": "hello", + "protocols": [ "http://livereload.com/protocols/official-7" ], + "serverName": "Hugo" + }`) } } c.ws.Close()