Add automatic reconnect

This commit is contained in:
tj committed 2009-11-25 20:37:35 +01:00
1 parent a0409fa8f1
commit fb7dbfd17b
1 file changed
-1
-1
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);