Add automatic reconnect

This commit is contained in:
tj 2009-11-25 20:37:35 +01:00
parent a0409fa8f1
commit fb7dbfd17b

1
irc.go
View File

@ -30,7 +30,6 @@ func reader(irc *IRCConnection) {
func writer(irc *IRCConnection) {
for {
b := strings.Bytes(<-irc.pwrite);
fmt.Printf("-->%s", b);
_, err := irc.socket.Write(b);
if err != nil {
fmt.Printf("%s\n", err);