Fix tests by not calling init in postConnect.

This commit is contained in:
Chris Rhodes 2013-02-15 19:44:58 -08:00
parent 6780338169
commit 93f8683068
1 changed files with 1 additions and 1 deletions

View File

@ -185,6 +185,7 @@ func (conn *Conn) Connect(host string, pass ...string) error {
} }
conn.Connected = true conn.Connected = true
conn.postConnect() conn.postConnect()
conn.ED.Dispatch(INIT, conn, &Line{})
return nil return nil
} }
@ -202,7 +203,6 @@ func (conn *Conn) postConnect() {
go func() { <-conn.cPing }() go func() { <-conn.cPing }()
} }
go conn.runLoop() go conn.runLoop()
conn.ED.Dispatch(INIT, conn, &Line{})
} }
// copied from http.client for great justice // copied from http.client for great justice