From 8d6b5de9943e1442a54ee799bdee00fe6a71b7e1 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sun, 17 Mar 2013 21:13:20 +0000 Subject: [PATCH] Don't Error() for EOF, since it's expected. --- client/connection.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/connection.go b/client/connection.go index 6e469e0..e838eb7 100644 --- a/client/connection.go +++ b/client/connection.go @@ -6,6 +6,7 @@ import ( "fmt" "github.com/fluffle/goirc/state" "github.com/fluffle/golog/logging" + "io" "net" "strings" "sync" @@ -259,7 +260,9 @@ func (conn *Conn) recv() { for { s, err := conn.io.ReadString('\n') if err != nil { - logging.Error("irc.recv(): %s", err.Error()) + if err != io.EOF { + logging.Error("irc.recv(): %s", err.Error()) + } conn.shutdown() return }