From a9031eb532881de0fc68260f1e60f6944f39bbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Sun, 24 Jan 2016 22:02:37 +0100 Subject: [PATCH] Remove select statement in irc.recv() --- irc/conn.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/irc/conn.go b/irc/conn.go index f776d5d3..15720bad 100644 --- a/irc/conn.go +++ b/irc/conn.go @@ -173,13 +173,7 @@ func (c *Client) recv() { } msg := parseMessage(line) - - select { - case <-c.quit: - return - - case c.Messages <- msg: - } + c.Messages <- msg switch msg.Command { case Ping: