mirror of https://github.com/fluffle/goirc
Fix tests by not calling init in postConnect.
This commit is contained in:
parent
6780338169
commit
93f8683068
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue