From 7249a600431bdfc920566ea830d66cf6e165159a Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Tue, 3 Mar 2015 01:33:12 +0100 Subject: [PATCH] Use "ignore incoming messages" code from the gorilla websocket documentation. --- cmd/mtwebmapper/forwardupdates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mtwebmapper/forwardupdates.go b/cmd/mtwebmapper/forwardupdates.go index 470398c..8f5f3f9 100644 --- a/cmd/mtwebmapper/forwardupdates.go +++ b/cmd/mtwebmapper/forwardupdates.go @@ -105,7 +105,7 @@ func (c *connection) reader() { defer c.ws.Close() for { // Just read the message and ignore it. - if _, _, err := c.ws.ReadMessage(); err != nil { + if _, _, err := c.ws.NextReader(); err != nil { break } }