From 93f86830680bb6002d497c9ceea6d1acf9581f79 Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Fri, 15 Feb 2013 19:44:58 -0800 Subject: [PATCH] Fix tests by not calling init in postConnect. --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/connection.go b/client/connection.go index 0bb9255..8a407f6 100644 --- a/client/connection.go +++ b/client/connection.go @@ -185,6 +185,7 @@ func (conn *Conn) Connect(host string, pass ...string) error { } conn.Connected = true conn.postConnect() + conn.ED.Dispatch(INIT, conn, &Line{}) return nil } @@ -202,7 +203,6 @@ func (conn *Conn) postConnect() { go func() { <-conn.cPing }() } go conn.runLoop() - conn.ED.Dispatch(INIT, conn, &Line{}) } // copied from http.client for great justice