mirror of https://github.com/fluffle/goirc
Don't Error() for EOF, since it's expected.
This commit is contained in:
parent
34462b2ad5
commit
8d6b5de994
|
@ -6,6 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/fluffle/goirc/state"
|
"github.com/fluffle/goirc/state"
|
||||||
"github.com/fluffle/golog/logging"
|
"github.com/fluffle/golog/logging"
|
||||||
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -259,7 +260,9 @@ func (conn *Conn) recv() {
|
||||||
for {
|
for {
|
||||||
s, err := conn.io.ReadString('\n')
|
s, err := conn.io.ReadString('\n')
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logging.Error("irc.recv(): %s", err.Error())
|
if err != io.EOF {
|
||||||
|
logging.Error("irc.recv(): %s", err.Error())
|
||||||
|
}
|
||||||
conn.shutdown()
|
conn.shutdown()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue