From 4f857520526e123b959bcaf52412d0f39f8d9bcd Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 5 May 2018 17:43:49 +0200 Subject: [PATCH] close sending channel (no more memory error, sending goroutine killed) -> TODO: manage already closed channels --- ws/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ws/client.go b/ws/client.go index cf2f226..9adef86 100644 --- a/ws/client.go +++ b/ws/client.go @@ -268,7 +268,7 @@ func (c *client) close(status MessageError, clientACK bool){ // fmt.Printf("[close] wait read stop\n") c.io.reading.Wait() close(c.ch.receive) - // close(c.ch.send) + close(c.ch.send) if status == NONE {