From 7f6c8fc2329a7ea3e486ae96b45a6affd1173675 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sat, 19 Dec 2009 14:58:41 +0000 Subject: [PATCH] should probably be reading from conn.out after the test for closedness --- irc/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/connection.go b/irc/connection.go index 52800ae..0510974 100644 --- a/irc/connection.go +++ b/irc/connection.go @@ -116,10 +116,10 @@ func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastInd // flood controlled using hybrid's algorithm if conn.Flood is true func (conn *Conn) send() { for { - line := <-conn.out if closed(conn.out) { break } + line := <-conn.out if err := conn.io.WriteString(line + "\r\n"); err != nil { conn.error("irc.send(): %s", err.String()) conn.shutdown()