Don't spam errors

This commit is contained in:
tj 2009-11-22 22:01:47 +01:00
parent 463c1d2b9b
commit 1160ab4f58

2
irc.go
View File

@ -21,6 +21,7 @@ func reader(irc *IRCConnection) {
if err != nil { if err != nil {
fmt.Printf("%s\n", err); fmt.Printf("%s\n", err);
irc.perror <- err; irc.perror <- err;
return;
} }
irc.pread <- msg; irc.pread <- msg;
} }
@ -33,6 +34,7 @@ func writer(irc *IRCConnection) {
if err != nil { if err != nil {
fmt.Printf("%s\n", err); fmt.Printf("%s\n", err);
irc.perror <- err; irc.perror <- err;
return;
} }
} }
} }